https://github.com/bsonntag/react-listbox
A customizable, accessible and controllable select for React.
https://github.com/bsonntag/react-listbox
listbox react select
Last synced: 9 months ago
JSON representation
A customizable, accessible and controllable select for React.
- Host: GitHub
- URL: https://github.com/bsonntag/react-listbox
- Owner: bsonntag
- License: mit
- Created: 2020-04-25T11:26:58.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2023-10-27T06:51:52.000Z (over 2 years ago)
- Last Synced: 2025-04-02T18:51:18.926Z (over 1 year ago)
- Topics: listbox, react, select
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@bsonntag/react-listbox
- Size: 2.76 MB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-listbox
[](https://circleci.com/gh/bsonntag/react-listbox)
A customizable, accessible and controllable listbox component for React.
## Installation
Using npm:
```sh
npm install @bsonntag/react-listbox
```
Using yarn:
```sh
yarn add @bsonntag/react-listbox
```
## Usage
```js
import React from 'react';
import {
Listbox,
ListboxButton,
ListboxButtonLabel,
ListboxList,
ListboxOption,
} from '@bsonntag/react-listbox';
function Select() {
const [value, setValue] = useState();
return (
Choose one fruit
Apple
Banana
Orange
);
}
```
## Contributing
Please feel free to submit any issues or pull requests.
## License
MIT