Dropdown with search option
npm install @sb1/ffe-searchable-dropdown-reactReact dropdown component with search.
``bash`
npm install --save ffe-searchable-dropdown-react
Full documentation on searchable dropdown usage is available at https://design.sparebank1.no/komponenter/dropdown/#searchabledropdown.
This package depends on @sb1/ffe-form-react, @sb1/ffe-icons-react, @sb1/ffe-chips-react and @sb1/ffe-spinner-react.
Make sure you import the less-files.
`javascript`
import { SearchableDropdown } from '@sb1/ffe-searchable-dropdown-react';
styling:
``
@import "npm://ffe-searchable-dropdown-react/less/searchable-dropdown";
If your project does not use Less, you can import the compiled styling:
`css`
@import '~@sb1/ffe-searchable-dropdown-react/css/searchable-dropdown.css';
``
@import "~ffe-core/less/colors";
See propTypes in SearchableDropdown.js
To start a local development server, run the following from the designsystem root folder:
`bash`
npm install
npm run build
npm start
A local instance of Storybook` with live reloading will run at http://localhost:6006/.
Example implementations using the latest versions of all components are also available at https://sparebank1.github.io/designsystem.