<SelectInput>
ComponentA dropdown select box input, nice and accessible.
Name | Description |
---|---|
name string | input name attribute |
label string | text to display above the input |
defaultLabel string | text to act as placeholder label |
size string | Controls font size and size of the element |
value object | set the value via prop Object contains nested props, see below: |
value.name string | programmatic name of the option |
value.label string | visual, human-readable name of the option |
options* array | array of option objects within the select Array members must be of the type below: |
options[x] object | Object contains nested props, see below: |
options[x].name string | |
options[x].label string | |
onValueChange function | function called with the value when it |
With many options:
With size="small"
: