⚛️ 📝 📦
react-listbox Composable WAI-ARIA compliant listbox React components.
Usage
<Listbox>
<ListboxOption value="ford">Ford</ListboxOption>
<ListboxOption value="honda">Honda</ListboxOption>
<ListboxOption value="tesla">Tesla</ListboxOption>
<ListboxOption value="toyota">Toyota</ListboxOption>
</Listbox>
Local Development
The project uses Storybook to interactively develop components with hot reloading. The react-listbox
Storybook is published here.
Clone this repository
git clone git@github.com:hzhu/react-listbox.git
Install dependencies
yarn
Run Storybook
yarn start
Navigate to http://localhost:3000.
Testing
This project uses Jest and react-testing-library
To run the tests
yarn test
or to continuously watch
yarn test --watch