Ir al contenido

co-combobox

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

Props

PropAtributoTipoDefaultDescripción
clearableclearablebooleantrueShow clear button when value is selected
disableddisabledbooleanfalseDisabled state
footerPrimaryLabelfooter-primary-labelstring'Ok'Label for the primary footer button
footerSecondaryLabelfooter-secondary-labelstring'New Tags'Label for the secondary footer button
helperTexthelper-textstring | undefinedHelper text displayed below the combobox
iconLefticon-leftstring | undefinedPhosphor icon name for the left position
labellabelstring | undefinedLabel text displayed above the combobox
multiplemultiplebooleantrueWhether multiple values can be selected
optionsoptionsComboboxOption[] | string | string[]'[]'Options to display in the dropdown (array of objects or strings)
placeholderplaceholderstring'Placeholder'Placeholder text
searchPlaceholdersearch-placeholderstring'Search'Search placeholder text
searchablesearchablebooleanfalseEnable search/filter in the dropdown
secondaryLabelsecondary-labelstring | undefinedSecondary label displayed on the right side
showFootershow-footerbooleanfalseShow footer buttons (New Tags + Ok)
valuevaluestring | string[]'[]'Currently selected values (multi-select)

Eventos

EventoDetailBubblesCancelableDescripción
coChangestring[]Emitted when the selection changes
coClearvoidEmitted when the clear button is clicked
coClosevoidEmitted when the dropdown closes
coFooterPrimaryvoidEmitted when the primary footer button is clicked
coFooterSecondaryvoidEmitted when the secondary footer button is clicked
coOpenvoidEmitted when the dropdown opens

Slots

Este componente no expone slots.

CSS Parts

PartDescripción
::part(clear)
::part(dropdown)
::part(footer)
::part(label)
::part(option)
::part(options)
::part(search)
::part(search-input)
::part(secondary-label)
::part(trigger)
::part(wrapper)

CSS Custom Properties

Este componente no expone CSS custom properties.