Build & compose WAI-ARIA compliant listbox based UI widgets.
Install it with
yarn add listbox or
npm install listbox and try out this piece of JSX:
<Listbox><OptionsList><Option>Ford Motor Co</Option><Option>Mazda Motor Corp</Option><Option>Tesla Inc</Option></OptionsList></Listbox>
This is a primitive listbox component. It abstracts away core listbox behavior and accessibility. It has no opinion on layout or styling and can be composed into other listbox based UI widgets with little code. See what kinds of widgets can composed using a primitive listbox under "Live Playground".
Check out the live, editable code examples on CodeSandbox here:
To run Storybook:
Clone this repository
git clone firstname.lastname@example.org:hzhu/listbox.git
yarn run storybook
Navigate to http://localhost:9009 to see live code changes during local development.
To run the tests
or to continuously watch
yarn test --watch