Select
Accessible dropdown selection built on @kobalte/core.
import { Select } from '@ybouhjira/hyperkit';#Playground
Edit the code — the preview recompiles and re-renders as you type.
Loading preview…
#Props
| Prop | Type | Default | Description |
|---|---|---|---|
options * | SelectOption[] | — | Array of selectable options. |
value | string | — | Currently selected option value. |
onChange | (value: string) => void | — | Callback fired when selection changes. |
placeholder | string | 'Select...' | Placeholder text shown when no option is selected. |
disabled | boolean | — | Whether the select is disabled. |
class | string | — | Additional CSS class name for the trigger button. |
unstyled | boolean | false | Disable default styling and apply only custom classes. |
* required prop.
#Design Tokens
This component reads the following CSS custom properties. Override them globally or per-instance to restyle it — see the CSS Variables guide.
--sk-accent--sk-bg-secondary--sk-border--sk-duration-fast--sk-duration-instant--sk-font-size-base--sk-icon-md--sk-radius-md--sk-radius-sm--sk-shadow-md--sk-space-sm--sk-space-xs--sk-text-primary--sk-z-popover