SelectInput

A component that defines a drop-down list of elements that could be selected.

Default

Loading

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.

OptGroups

Invalid State

Labelled with helper and error text

Label, helper and error text to give provide more context and useful hints.

Props - SelectInput

Name
Description
Type
Default Value
allowEmptyboolfalse
childrennoden/a
descriptionRenders a neutral helper message underneath the input.string''
disabledbooln/a
errorMessageRenders a red error message for validation underneath the input.string''
idstringn/a
isValidbooltrue
labelRenders a label inside the input.stringn/a
loadingboolfalse
namestringn/a
onChangefuncn/a
valuestring''
2022 © Volvo Car Corporation