Select
Choose me.
Example
Props
đšī¸ standard props
options Option[]
List of options available in the select dropdown.
undefinedname string
Name of the select input.
undefinedvalue string | number
The selected value of the select input.
undefineddisabled boolean
Disables the select input if true.
falseplaceholder string
Placeholder text when no option is selected.
undefinedoptionAttributes HTMLOptionAttributes
Additional attributes for the option elements.
undefinedđ¨ style props
--select-border border
Border of the select input.
1.3px solid rgb(var(--global-color-contrast-300), .3)--select-active-border-color color
Border color when the select is active.
rgb(var(--global-color-primary-500))--option-border-color color
Border color of each option.
rgb(var(--global-color-contrast-200))--option-background-color color
Background color of each option.
rgb(var(--global-color-background-200))--option-color color
Text color of each option.
rgb(var(--global-color-contrast-700))--select-border-radius size
Border radius of the select input.
5px--select-padding-right size
Right padding of the select input.
5px--select-padding-left size
Left padding of the select input.
5px--select-background-color color
Background color of the select input.
transparent--select-color color
Text color of the select input.
rgb(var(--global-color-contrast-900))--select-width size
Width of the select input.
100%--select-height size
Height of the select input.
36pxSlots
Events
onchange
Triggered when the selected value changes.