components / select

select.

styled dropdown select with keyboard navigation and option prefix slots (e.g. palette swatches).

installation
bunx @justin06lee/chrome@latest add select
props
nametypedefaultdescription
value *T-
onChange *(value: T) => void-
options *SelectOption<T>[]-
placeholderstring-shown in the trigger when no option matches value.
disabledboolean-disables the trigger button.
ariaLabelstring-accessible name for the trigger.
classNamestring-extra classes for the root element.
size'default' | 'compact''default'
backgroundstring-CSS background applied to the root element. transparent by default.