React dropdown component with search.
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.
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:
@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:
npm install
npm run build
npm start
A local instance of component-overview
with live reloading will run at http://localhost:1234/.
Example implementations using the latest versions of all components are also available at https://sparebank1.github.io/designsystem.