Sakani

Select

A custom, fully-styled single-select dropdown, not a native <select>.

Built as a real listbox rather than wrapping the native element, since a native dropdown renders an OS-level popup that can't be styled to match the design.

Error state

Select a country to continue.

Props

PropTypeDefaultDescription
options{ label: string; value: string; disabled?: boolean }[]The list of selectable options.
labelstringField label.
descriptionstringHelp text under the field.
errorstringSets the error state and shows this message.
size'sm' | 'md' | 'lg''md'Field height.
valuestringControlled selected value.
defaultValuestringUncontrolled initial value.
onChange(value: string) => voidFires with the new value on selection.
disabledbooleanfalseDisables the field.