Select


Examples


margin
maxWidth
Learn More
id
string
The ID for the form input
options
array
Required
Array of options with { value, label }, Strings, or Numbers
disabled
bool
Whether the input is disabled or not
required
bool
Whether the input is required or not
label
string
Label for the input
helpText
node
Addition text to help the user that renders below the input
error
string
Renders an error message below the input
errorInLabel
bool
Optionally renders the error message to the right of the input's label
onChange
function
default: (e) => void
Callback when input value state changes
onFocus
function
default: (e) => void
Callback when input becomes focused
onBlur
function
default: (e) => void
Callback when input loses focus