Skip to content
Child component of Combobox

API reference

Properties

PropertyAttributeDescriptionTypeDefault
activeactiveWhen true, the component is active.booleanfalse
ancestorsSpecifies the parent and grandparent calcite-combobox-items, which are set on calcite-combobox.ComboboxChildElement[]
descriptiondescriptionSpecifies a description for the component. Displays below the heading.string
disableddisabledWhen true, prevents interaction and decreases the component's opacity.booleanfalse
filterDisabledfilter-disabledWhen true, omits the component from the calcite-combobox filtered search results.booleanfalse
guidguidThe id attribute of the component. When omitted, a globally unique identifier is used.string
headingrequiredheadingSpecifies the component's heading text.string
iconiconSpecifies an icon to display.IconName
iconFlipRtlicon-flip-rtlWhen true and the element direction is right-to-left ("rtl"), flips the components icon`.booleanfalse
labellabelSpecifies an accessible label for the component.any
metadataSpecifies additional metadata to the component for use in filtering.Record<string, unknown>
selectedselectedWhen true, the component is selected.booleanfalse
shortHeadingshort-headingSpecifies the component's short heading. When provided, the short heading will be displayed in the component's selection. It is recommended to use 5 characters or fewer.string
valuevalueThe component's value. Falls back to heading if not provided.any

Slots

NameDescription
default (unnamed)A slot for adding nested calcite-combobox-items.
content-endA slot for adding non-actionable elements after the component's content.
content-startA slot for adding non-actionable elements before the component's content.

Styles

NameDescription
--calcite-combobox-item-border-color
deprecated Specifies the component's border color.
--calcite-combobox-text-colorSpecifies the component's text and icon color.
--calcite-combobox-text-color-hoverSpecifies the component's text and icon color when hovered.
--calcite-combobox-item-background-color-activeWhen active, specifies the component's background color.
--calcite-combobox-item-background-color-hoverSpecifies the component's background color when hovered.
--calcite-combobox-item-shadowSpecifies the component's shadow.
--calcite-combobox-selected-icon-colorSpecifies the component's selected indicator icon color.
--calcite-combobox-description-text-colorSpecifies the component's description and shortHeading text color.
--calcite-combobox-description-text-color-pressSpecifies the component's description and shortHeading text color when hovered.
--calcite-combobox-heading-text-colorSpecifies the component's heading text color.

Events

NameDescriptionBehavior
calciteComboboxItemChangeFires whenever the component is selected or unselected.bubblescomposed

Methods

NameDescriptionSignature
componentOnReadyCreate a promise that resolves once component is fully loaded.componentOnReady(): Promise<this>

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.