Reaselct

Select Component for React

README

reaselct

  Select Component for React


   
        GitHub stars  


🚀 Quick Links

- View the Docs and Demos
- Play with examples in CodeSandbox
- Learn about updates from the changelog

🪄 Features

- Single Select
- Multi Select
- Filtering with Fuzzy Search
- Async Support
- Groups Support
- Light and Dark Theme

📦 Usage

Install the package via NPM:

  1. ```
  2. npm i reaselct --save
  3. ```

then use it like:

  1. ```tsx
  2. import React, { FC, useState } from 'react';
  3. import { Select, SelectOption } from 'reaselct';

  4. const MyComponent: FC = () => {
  5.   const [value, setValue] = useState<string | null>(null);
  6. return (
  7.     <Select
  8.       value={value}
  9.       onChange={setValue}
  10.     >
  11.       <SelectOption value="facebook">facebook</SelectOption>
  12.       <SelectOption value="twitter">twitter</SelectOption>
  13.       <SelectOption value="twitch">twitch</SelectOption>
  14.     </Select>
  15.   );
  16. };
  17. ```

🔭 Development

If you want to run reaselct locally, its super easy!

- Clone the repo
- yarn install
- yarn start
- Browser opens to Storybook page

❤️ Contributors

Thanks to all our contributors!