SelectInput
A general purpose select input field that is used with controlled state manangement.
Props
Name | Type | Default | Description |
|---|---|---|---|
onChange* | func | The change event handler. Function signature is | |
name* | string | A unique semantic name that is connected to the label | |
children | node | The select options | |
description | string | Additional description information display beneath the input | |
disabled | bool | Sets disabled | |
errorMessage | string | An error message text that is displayed once isValid is false | |
isEmpty | func | A function that takes the value and returns a boolean that indicates an empty state | |
isValid | bool | Sets the validation state | |
label | string | The label text | |
loading | bool | Whether the input is loading | |
mode | compact | ||
onBlur | func | The bur event handler | |
onFocus | func | The focus event handler | |
required | bool | Sets required | |
type | default | success | warning | destructive | info | default | colors to use for fore- and background |
value | string, number | The controlled value |