s-m-r-t
Open the s-m-r-t source on GitHub Switch to dark color scheme
← All UI components

Forms and controls

Combobox

No summary has been written for Combobox. Everything below is generated from the declaration shipped in 0.44.0 and describes the real contract.

Public export

typescript
import { Combobox } from '@happyvertical/smrt-ui/forms';
Import path
@happyvertical/smrt-ui/forms
Props
11
Props described
11 of 11
Bindable state
0
Callback events
1
Verified release
0.44.0

Props

NameTypeRequiredDescription
optionsControlOption[]YesArray of options to select from.
valuestringNoCurrently selected option value (bindable).
labelstringYesLabel for the combobox control.
namestringNoHTML form field name.
placeholderstringNoPlaceholder text shown when value is empty.
disabledbooleanNoWhether the control is disabled.
requiredbooleanNoWhether the control is required.
allowCustombooleanNoWhether users can enter values not in the options list.
interactionControlInteractionOptions | falseNoInteraction options or false to disable all.
onvaluechange(value: string) => voidNoCallback when the selected value changes.
classstringNoCSS class to apply to the combobox container.

Bindable state

This component has no bindable public state.

Callback events

  • onvaluechange(value: string) => void

Examples and explanation