Select
Single-option selector with an input-like trigger and a floating panel below it, matching Combobox. Optional label, controlled or uncontrolled.
Installation
npx stepwise-ui add select
Default
With label
Controlled
Pass value and onChange for controlled usage. Without them the component manages its own state.
Disabled
Props
PropTypeDescription
optionsSelectOption[]Array of { value, label } objects.
valuestringControlled selected value.
onChange(value: string) => voidCalled when selection changes.
placeholderstringText shown when nothing is selected.
labelstringLabel rendered above the trigger.
disabledbooleanDisables the trigger.