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