3.2.1 • Published 9 months ago
@oshq/react-select v3.2.1
React Select
The React Select is a customizable and accessible dropdown select component for reactjs, built from scratch for flexibility and performance. Supports single and multi-select options, with an intuitive API for easy integration.
Demo
Table of Content
Installation
You can install the React Select component via npm:
npm i @oshq/react-select
Usage
Basic Implementation
import Select from '@oshq/react-select';
import '@oshq/react-select/index.css';
const App = () => {
const [selected, setSelected] = useState(undefined);
const options = [
{ label: 'apple', value: 'apple' },
{ label: 'ball', value: 'ball' },
{ label: 'cat', value: 'cat' },
{ label: 'dog', value: 'dog' },
];
return (
<Select
value={selected}
onChange={(_,val) => {
setSelected(val);
}}
options={async () => options}
/>
);
};
Features
- Virtual Scrolling at it's core
- Customizable components support
- Typeahead support
- Complete keyboard navigation
- Multiple selection support
- Support for Asynchronous options loading
- Supports items, labels, groups of items
- Fully managed focus
- Written in TypeScript
3.2.1
9 months ago
3.2.0
9 months ago
3.1.0
9 months ago
1.4.6
12 months ago
1.4.5
12 months ago
1.4.4
1 year ago
1.4.3
1 year ago
2.0.3
11 months ago
2.0.2
11 months ago
2.0.4
11 months ago
2.0.1
11 months ago
2.0.0
11 months ago
3.0.0
11 months ago
1.4.2
1 year ago
1.4.1
1 year ago
1.4.0
1 year ago
1.3.3
1 year ago
1.3.2
1 year ago
1.3.1
1 year ago
1.3.0
2 years ago
1.2.0
2 years ago
1.0.4
2 years ago
1.0.2
2 years ago
1.0.3
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago