npm-input-search-dropdown-rc
v1.0.8
Published
<!-- https://medium.com/@oliverlenton/how-to-create-a-react-npm-package-with-typescript-db9106dc9a23 -->
Downloads
5
Readme
In the project root ( where package.json is located ) run:
npm i npm-input-search-dropdown-rc
npm i react-select tailwindcss sass
use the component where needed:
import { InputDropdownComponent } from 'npm-input-search-dropdown-rc';
<InputDropdownComponent
options={ [
{ value: 'Option 1', label: 'Option 1'},
{ value: 'Option 2', label: 'Option 2'},
{ value: 'Option 3', label: 'Option 3'}
] }
inputName="input-search"
/>