React select component
npm install @acodez/selectReact select component with option for multi-select.
-----
- Installation
- PropsAPI
- Usage
-----
``bash`
npm install @acodez/select
| Property | Type | Required | Description |
|-----|-----|-----|:-----|
|placeholder|string|yes|Placeholder/Default label|array
|options||yes|add value as an array under this|string
|multiple||no|add multiselect option|
-----
`jsx`
import Select from "@acodez/select";
Example - Basic
`jsx`
placeholder="Pick one"
options={[
{ value: 'Rock' },
{ value: 'Paper' },
{ value: 'Scissors' }
]}
/>
Example - Multiple
`jsx``
placeholder="Pick as much as you want!"
multiple
options={[
{ value: 'Rock' },
{ value: 'Paper' },
{ value: 'Scissors' }
]}
/>