List Item
API reference
Properties
Property | Attribute | Description | Type | Values |
---|---|---|---|---|
description | description | An optional description for the list item. Displays below the label text. | undefined | |
disabled | disabled | When true, prevents user interaction. | true false | |
label | label | The label text of the list item. Displays above the description text. | undefined | |
nonInteractive | non-interactive | When true, prevents the content of the list item from user interaction. | true false |
Methods
Name | Description | Signature | Returns |
---|---|---|---|
setFocus | Sets focus on the component. | setFocus() => Promise<void> | Promise<void> |
Slots
Name | Description |
---|---|
default (unnamed) | A slot for adding `calcite-list-item` and `calcite-list-item-group` elements. |
actions-end | A slot for adding actionable `calcite-action` elements after the content of the list item. |
actions-start | A slot for adding actionable `calcite-action` elements before the content of the list item. |
content-end | A slot for adding non-actionable elements after the label and description of the list item. |
content-start | A slot for adding non-actionable elements before the label and description of the list item. |