The listbox is a component that renders a list of items. It can be used to render a list of text, media or complex objects. The default shape is rounded
.
Show codeHide code
The listbox is a component that renders a list of items. It can be used to render a list of text, media or complex objects. The default size is md
.
Show codeHide code
The listbox can be rendered in different contrast modes. The default contrast mode is default
. Contrast can affect the color of the text and the background of the element, as well as the light or the dark mode.
Show codeHide code
The listbox can be rendered in different contrast modes. Contrast can affect the color of the text and the background of the element, as well as the light or the dark mode.
Show codeHide code
The listbox can be rendered in different contrast modes. Contrast can affect the color of the text and the background of the element, as well as the light or the dark mode.
Show codeHide code
The listbox can be shown in an error state using the error
prop. You can also set a custom error message using the same prop.
Show codeHide code
Listbox can be shown in a disabled state using the disabled
prop.
Show codeHide code
Listbox can be shown in a loading state using the loading
prop.
Show codeHide code
Listbox can have a material design style floating label using the labelFloat
prop.
Show codeHide code
Listbox items can have a sublabel using the sublabel
prop of the properties
object.
Show codeHide code
Listbox items can have an icon using the icon
prop of the properties
object.
Show codeHide code
Listbox items can have a media using the media
prop of the properties
object.
Show codeHide code
Listbox can be used to select multiple items using the multiple
prop.
Show codeHide code
items
Show exampleHide example
classes
Show exampleHide example
color-focus
Show exampleHide example
disabled
Show exampleHide example
error
Show exampleHide example
fixed
Show exampleHide example
icon
Show exampleHide example
label
Show exampleHide example
label-float
Show exampleHide example
loading
Show exampleHide example
multiple
Show exampleHide example
multiple-label
Show exampleHide example
placeholder
Show exampleHide example
properties
Show exampleHide example
selected-icon
Show exampleHide example
rounded
@since
2.0.0
Show exampleHide example
placement
Show exampleHide example
contrast
Show exampleHide example
size
Show exampleHide example
#label
Show exampleHide example
#icon
Show exampleHide example
#listbox-button
Show exampleHide example
#listbox-item
Show exampleHide example
active
Show exampleHide example
selected
Show exampleHide example
selected-icon
Show exampleHide example
value