docs/components/input/Select

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.

Live playground
Loading preview…

#Props

PropTypeDefaultDescription
options *SelectOption[]Array of selectable options.
valuestringCurrently selected option value.
onChange(value: string) => voidCallback fired when selection changes.
placeholderstring'Select...'Placeholder text shown when no option is selected.
disabledbooleanWhether the select is disabled.
classstringAdditional CSS class name for the trigger button.
unstyledbooleanfalseDisable 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