A component that defines a drop-down list of elements that could be selected.
Rendering the select input in a loading state can be useful way to give feedback to the user that the component is loading new options.
Label, helper and error text to give provide more context and useful hints.
Name | Description | Type | Default Value |
---|---|---|---|
allowEmpty | bool | false | |
children | node | n/a | |
description | Renders a neutral helper message underneath the input. | string | '' |
disabled | bool | n/a | |
errorMessage | Renders a red error message for validation underneath the input. | string | '' |
id | string | n/a | |
isValid | bool | true | |
label | Renders a label inside the input. | string | '' |
loading | bool | false | |
name | string | n/a | |
onChange | func | n/a | |
value | string | '' |