native-select
v4.9.10arrow_drop_downThe option elements to populate the select with.
Can be some <option>
elements.
The icon that displays the arrow.
An Input
element; does not have to be a material-ui specific Input
.
Attributes applied to the select
element.
Callback function fired when a menu item is selected.
The input value. The DOM API casts this to a string.
The variant to use.
An alternative to <Select native />
with a much smaller bundle size footprint.
Demos:
API:
- NativeSelect API
- inherits Input API
An alternative to <Select native />
with a much smaller bundle size footprint.
Name | Type | Description |
---|---|---|
children | node | The option elements to populate the select with.
Can be some |
classes | object | Override or extend the styles applied to the component. See CSS API below for more details. |
IconComponent | elementType | The icon that displays the arrow. |
input | element | An |
inputProps | object | Attributes applied to the |
onChange | function | The event source of the callback.
You can pull out the new value by accessing |
value | any | The input value. The DOM API casts this to a string. |
variant | 'filled' | 'outlined' | 'standard' | The variant to use. |
children | node | The option elements to populate the select with.
Can be some |
classes (required) | object | Override or extend the styles applied to the component. See CSS API below for more details. |
className | string | The CSS class name of the select element. |
disabled | bool | If |
IconComponent (required) | elementType | The icon that displays the arrow. |
inputRef | custom | |
multiple | bool | |
name | string | Name attribute of the |
onChange | function | The event source of the callback.
You can pull out the new value by accessing |
value | any | The input value. |
variant | 'standard' | 'outlined' | 'filled' | The variant to use. |