@hixme-ui/select
v2.2.0
Published
hixme-ui Select component
Downloads
196
Readme
Select
npm i --save @hixme-ui/select
Usage
Using children options
import Select from '@hixme-ui/select'
<Select>
<option value='hello'>Hello</option>
<option value='goodbye'>Goodbye</option>
</Select>
// Outputs
<select>
<option value='hello'>Hello</option>
<option value='goodbye'>Goodbye</option>
</select>
Using a list to build options
<Select list={[{
id: 0,
name: 'Zero'
}]} />
// Outputs
<select>
<option value='0'>Zero</option>
</select>
Props
| Name | Type | Default | | --------------- | ----------- | --------- | | list | array | undefined | | placeholder | string | null | | loading | bool | false |