use-downshift
Installation
$ yarn add use-downshift# or $ npm i use-downshift
Usage
import React from 'react' import useDownshift from 'use-downshift' const items = value: 'apple' value: 'pear' value: 'orange' value: 'grape' value: 'banana' { const isOpen getRootProps getMenuProps getItemProps getLabelProps getInputProps highlightedIndex inputValue selectedItem } = return <div > <label >label</label> <input /> isOpen && <ul > items </ul> </div> }
Roadmap
- move to ts
- tests
- ci/cd
- semantic-release
- docs
- all-contributors
Inspiration
LIENSE
MIT