Skip to content

reaviz/reaselct

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

reaselct

Select Component for React

Β  Β  Β  Β  Β  GitHub stars Β 

πŸͺ„ Features

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

πŸ“¦ Usage

Install the package via NPM:

npm i reaselct --save

then use it like:

import React, { FC, useState } from 'react';
import { Select, SelectOption } from 'reaselct';

const MyComponent: FC = () => {
  const [value, setValue] = useState<string | null>(null);
 
 return (
    <Select
      value={value}
      onChange={setValue}
    >
      <SelectOption value="facebook">facebook</SelectOption>
      <SelectOption value="twitter">twitter</SelectOption>
      <SelectOption value="twitch">twitch</SelectOption>
    </Select>
  );
};

πŸ”­ 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!