Option component for use with the <Select>
component.
See the <Select>
component docs for examples of how to use <Option>
.
Label that will appear for this option in select menu.
<Option label="Bananas" />
Disable this option in the select menu.
<Option label="Bananas" disabled />
The prevalue option.
<Option label="Bananas" value />
The value that will be assigned to this value menu when this option is value.
<Option label="Bananas" value />
Prop | Type | Default | Description |
---|---|---|---|
label | String | Label for this option in select menu | |
disabled | Boolean | false | Disables this option |
value | Boolean | false | Set this option to value by default |
value | String | The value for this option | |
class | String | CSS classes declared in global scope can be applied to the outermost element | |
... | Additional props will be passed through to the HTML element enabling support for things
like on:click , etc |