@atmc/select

<p align="center"> <img alt="@atmc/select" src="./assets/logo.svg" width="100"> </p>

Usage no npm install needed!

<script type="module">
  import atmcSelect from 'https://cdn.skypack.dev/@atmc/select';
</script>

README

@atmc/select - An alternative to react-select

@atmc/select

A super lightweight react select with search, autoComplete and debounce

npm npm npm npm

Install

yarn add @atmc/select or npm install @atmc/select

Examples

All examples in CRA example.

Basic examples

import { Select, SelectOption } from "@atmc/select";
...
const Home = () => {
  const options:SelectOption[] = [
      { value: "s", name: "Small" },
      { value: "m", name: "Medium" },
      { value: "l", name: "Large" },
    ];

  return <Select options={options} onChange={(option: SelectOption) => console.log(option)} />
}