Select
A form control element used to select from several provided options and enter data.
install | yarn add @clayui/form |
---|---|
version | 3.122.0 |
Stable3.122.0View in LexiconCHANGELOG
ClaySelect have the same React API of <select>
element. Also, ClaySelect.Option
has the same API of <option>
React element.
Select
Property | Description |
---|---|
sizing 'lg' | 'sm' | Set the proportional size of the Select component. |
SelectWithOption
Property | Description |
---|---|
options Array<
(
| React.ComponentProps<typeof Select.Option>
| React.ComponentProps<typeof Select.OptGroup>
) & {
options?: Array<React.ComponentProps<typeof Select.Option>>;
type?: 'group';
}
> | Options of the select. The default value is [] |