components / select
select.
styled dropdown select with keyboard navigation and option prefix slots (e.g. palette swatches).
installation
bunx @justin06lee/chrome@latest add selectprops
| name | type | default | description |
|---|---|---|---|
| value * | T | - | |
| onChange * | (value: T) => void | - | |
| options * | SelectOption<T>[] | - | |
| placeholder | string | - | shown in the trigger when no option matches value. |
| disabled | boolean | - | disables the trigger button. |
| ariaLabel | string | - | accessible name for the trigger. |
| className | string | - | extra classes for the root element. |
| size | 'default' | 'compact' | 'default' | |
| background | string | - | CSS background applied to the root element. transparent by default. |