use-drop
A minimalist approach to custom dropdowns and autocompletes.
Features
- bring your own markup
- no magic
- full a11y support
- supports multi-select
- controlled, integrate with any form library
Install
npm i use-drop --save
Usage
;const cx from "classnames"; ; { const label lableSet = React; const id items isOpen getControlProps getDropProps = ; return <> <label htmlFor=id>Cities</label> <button id=id controlProps=>label</button> isOpen && <ul ...> items </ul> </> ;}
License
MIT License © Eric Bailey