-
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"
/>