ListBox


Examples


margin
maxWidth
Learn More
id
string
The ID for the listbox
value
string | number
The value of the listbox
defaultValue
string | number
The default value of the listbox
disabled
bool
Whether the listbox is disabled or not
required
bool
Whether the listbox is required or not
label
string
Label for the listbox
labelHidden
bool
Whether the label is hidden or not
helpText
node
Addition text to help the user that renders below the listbox
error
string
Renders an error message below the listbox
errorInLabel
bool
Optionally renders the error message to the right of the listbox's label
onChange
function
default: (e) => void
Callback when listbox value state changes
onFocus
function
default: (e) => void
Callback when listbox becomes focused
onBlur
function
default: (e) => void
Callback when listbox loses focus

disabled
bool
Whether the option is disabled or not
value
string | number
The value of the option