Ir al contenido

co-autocomplete

Ver código
<co-autocomplete label="Ejemplo"></co-autocomplete>

Props

PropAtributoTipoDefaultDescripción
clearableclearablebooleantrue
debouncedebouncenumber300Debounce time in ms for coSearch
disableddisabledbooleanfalse
emptyTextempty-textstring'No results'Message when options are empty after search
helperTexthelper-textstring | undefined
iconLefticon-leftstring | undefined
labellabelstring | undefined
layoutlayout"horizontal" | "vertical"'vertical'Label layout: vertical (label above) or horizontal (label beside)
loadingloadingbooleanfalse
minCharsmin-charsnumber1Minimum characters before emitting coSearch
multiplemultiplebooleanfalse
optionsoptionsAutocompleteOption[] | string | string[]'[]'Pre-loaded or server-returned options
placeholderplaceholderstring'Search…'
requiredrequiredbooleanfalseWhether the field is required (renders a required marker on the label).
secondaryLabelsecondary-labelstring | undefined
statusstatus"default" | "error" | "info" | "success" | "warning"'default'
valuevaluestring | string[]''

Eventos

EventoDetailBubblesCancelableDescripción
coChangestring | string[]
coClearvoid
coSearchstringFired when the user types (after debounce). Host should fetch and set options.

Slots

Este componente no expone slots.

CSS Parts

Este componente no expone CSS parts.

CSS Custom Properties

Este componente no expone CSS custom properties.