0.7.0 • Published 5 years ago
@atmc/select v0.7.0
@atmc/select - An alternative to react-select
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)} />
}