API reference
Properties
| Property | Attribute | Description | Type | Default |
|---|---|---|---|---|
| closable | closable | When | boolean | false |
| closed | closed | When | boolean | false |
| description | description | Specifies a description for the component. Displays below the | string | |
| disabled | disabled | When | boolean | false |
| dragDisabled | drag-disabled | When | boolean | false |
| expanded | expanded | When | boolean | false |
| iconEnd | icon-end | Specifies an icon to display at the end of the component. | IconName | |
| iconFlipRtl | icon-flip-rtl | Displays the | FlipContext | |
| iconStart | icon-start | Specifies an icon to display at the start of the component. | IconName | |
| label | label | Specifies an accessible label for the component, displays above the | string | |
| messageOverrides | Overrides individual strings used by the component. | Record<string, unknown> | undefined | ||
| metadata | Provides additional metadata to the component. Primary use is for a filter on the parent | Record<string, unknown> | ||
| open | open | expanded property instead.When | boolean | false |
| selected | selected | When | boolean | false |
| sortHandleOpen | sort-handle-open | When | boolean | false |
| topLayerDisabled | top-layer-disabled | When Only set this if you need complex z-index control or if top layer placement causes conflicts with third-party components. | boolean | false |
| unavailable | unavailable | When | boolean | false |
| value | value | The component's value. | any |
Slots
| Name | Description |
|---|---|
| default (unnamed) | A slot for adding |
| actions-start | A slot for adding actionable |
| content-start | A slot for adding non-actionable elements before the component's |
| content | A slot for adding non-actionable, centered content in place of the component's |
| content-end | A slot for adding non-actionable elements after the component's |
| actions-end | A slot for adding actionable |
| content-bottom | A slot for adding content below the component's |
Styles
| Name | Description |
|---|---|
| --calcite-list-background-color-hover | Specifies the component's background color when hovered. |
| --calcite-list-background-color-press | Specifies the component's background color when pressed. |
| --calcite-list-background-color | Specifies the component's background color. |
| --calcite-list-border-color | Specifies the component's border color. |
| --calcite-list-content-text-color | Specifies the content color. |
| --calcite-list-description-text-color | Specifies the |
| --calcite-list-icon-color | Specifies the component's icon color. |
| --calcite-list-label-text-color | Specifies the |
| --calcite-list-selection-border-color | Specifies the component's selection border color. |
Events
| Name | Description | Behavior |
|---|---|---|
| calciteListItemClose | Fires when the close button is clicked. | |
| calciteListItemCollapse | Fires when the component's content area is collapsed. | |
| calciteListItemExpand | Fires when the component's content area is expanded. | |
| calciteListItemSelect | Fires when the component is selected. | |
| calciteListItemSortHandleBeforeClose | Fires when the sort handle is requested to be closed and before the closing transition begins. | |
| calciteListItemSortHandleBeforeOpen | Fires when the sort handle is added to the DOM but not rendered, and before the opening transition begins. | |
| calciteListItemSortHandleClose | Fires when the sort handle is closed and animation is complete. | |
| calciteListItemSortHandleOpen | Fires when the sort handle is open and animation is complete. | |
| calciteListItemToggle | Fires when the open button is clicked. |
Methods
| Name | Description | Signature |
|---|---|---|
| componentOnReady | Creates a promise that resolves once the component is fully loaded. | componentOnReady(): Promise<this> |
| setFocus | Sets focus on the component. | setFocus(options?: FocusOptions): Promise<void> |