API reference
Properties
| Property | Attribute | Description | Type | Default |
|---|---|---|---|---|
| active | active | When | boolean | false |
| ancestors | Specifies the parent and grandparent | ComboboxChildElement[] | ||
| description | description | Specifies a description for the component. Displays below the heading. | string | |
| disabled | disabled | When | boolean | false |
| filterDisabled | filter-disabled | When | boolean | false |
| guid | guid | The | string | |
| heading | heading | Specifies the component's heading text. | string | |
| icon | icon | Specifies an icon to display. | IconName | |
| iconFlipRtl | icon-flip-rtl | When | boolean | false |
| label | label | Specifies an accessible label for the component. | any | |
| metadata | Specifies additional metadata to the component for use in filtering. | Record<string, unknown> | ||
| selected | selected | When | boolean | false |
| shortHeading | short-heading | Specifies 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 | |
| value | value | The component's value. Falls back to | any |
Slots
| Name | Description |
|---|---|
| default (unnamed) | A slot for adding nested |
| content-end | A slot for adding non-actionable elements after the component's content. |
| content-start | A slot for adding non-actionable elements before the component's content. |
Styles
| Name | Description |
|---|---|
| --calcite-combobox-item-border-color | |
| --calcite-combobox-text-color | Specifies the component's text and |
| --calcite-combobox-text-color-hover | Specifies the component's text and |
| --calcite-combobox-item-background-color-active | When |
| --calcite-combobox-item-background-color-hover | Specifies the component's background color when hovered. |
| --calcite-combobox-item-shadow | Specifies the component's shadow. |
| --calcite-combobox-selected-icon-color | Specifies the component's |
| --calcite-combobox-description-text-color | Specifies the component's |
| --calcite-combobox-description-text-color-press | Specifies the component's |
| --calcite-combobox-heading-text-color | Specifies the component's |
Events
| Name | Description | Behavior |
|---|---|---|
| calciteComboboxItemChange | Fires whenever the component is selected or unselected. |
Methods
| Name | Description | Signature |
|---|---|---|
| componentOnReady | Creates a promise that resolves once the component is fully loaded. | componentOnReady(): Promise<this> |