Skip to main content

List

Ask AIView as Markdown
Copy a prompt to ask an AI assistant about this page.
Since 6.0.0

Lists display collections of related items with flexible content and interactions.

List - Code

Variants​

Additional options​

Draggable​

Action on hover​

Custom content​

User list​

Notification list​

API for ix-list​

Properties​

Since 6.0.0
Description

Show action content on hover or focus for list items that do not define their own setting.

Attribute
action-on-hover
Type
boolean | undefined
Since 6.0.0
Description

Default action slot alignment for list items that do not define their own setting.

Attribute
action-slot-alignment
Type
"center" | "start" | undefined
Since 6.0.0
Description

Enable activation for list items that do not define their own setting.

Attribute
active
Type
boolean | undefined
Since 6.0.0
Description

Display selection checkboxes on list items that do not define their own setting.

Attribute
checkbox
Type
boolean | undefined
Since 6.0.0
Description

Default disabled state for list items that do not define their own state.

Attribute
disabled
Type
boolean | undefined
Since 6.0.0
Description

Display dividers between direct list items with the ghost variant.

Attribute
divider
Type
boolean
Default
false
Since 6.0.0
Description

Visual behavior used while dragging a list item.

Attribute
drag-behavior
Type
"dynamic" | "separator"
Default
'dynamic'
Since 6.0.0
Description

Enable drag-and-drop reordering of direct list items.

Attribute
draggable
Type
boolean
Default
false
Since 6.0.0
Description

i18n fallback label for list items without a label.

Attribute
i18n-list-item
Type
string
Default
'List item'
Since 6.0.0
Description

i18n announcement when list item reordering is cancelled.

Use {item} for the item label.

Attribute
i18n-reorder-cancelled
Type
string
Default
'{item} reorder cancelled.'
Since 6.0.0
Description

i18n announcement when a reordered list item is dropped.

Use {item}, {position}, and {total} placeholders.

Attribute
i18n-reorder-dropped
Type
string
Default
'{item} dropped at position {position} of {total}.'
Since 6.0.0
Description

i18n announcement when a list item is lifted for reordering.

Use {item} for the item label.

Attribute
i18n-reorder-lifted
Type
string
Default
'{item} lifted. Use arrow keys to move, Enter or Space to drop, and Escape to cancel.'
Since 6.0.0
Description

i18n announcement when a list item changes position.

Use {item}, {position}, and {total} placeholders.

Attribute
i18n-reorder-position
Type
string
Default
'{item}, position {position} of {total}'
Since 6.0.0
Description

Space between direct list items.

Attribute
item-gap
Type
"lg" | "md" | "none" | "sm"
Default
'sm'
Since 6.0.0
Description

Default visual variant for list items that do not define their own variant.

Attribute
variant
Type
"filled" | "ghost" | "outline" | undefined

Events​

Since 6.0.0
Description

Emitted after a list item has been reordered.

Event
itemOrderChange
Detail
{ item: HTMLIxListItemElement; oldIndex: number; newIndex: number; }

Slot​

Description

List items and optional group separators.

API for ix-list-item​

Properties​

Since 6.0.0
Description

Show action slot content only when the item is hovered or focused.

Attribute
action-on-hover
Type
boolean
Default
false
Since 6.0.0
Description

Vertical alignment of the action slot content.

Attribute
action-slot-alignment
Type
"center" | "start"
Default
'center'
Since 6.0.0
Description

Enable activation of the primary item surface.

Attribute
active
Type
boolean
Default
false
Since 6.0.0
Description

Accessible label for the selection checkbox.

Attribute
aria-label-checkbox
Type
string
Default
'Select list item'
Since 6.0.0
Description

Accessible label for the drag gripper.

Attribute
aria-label-drag-gripper
Type
string
Default
'Reorder list item'
Since 6.0.0
Description

Accessible label for the item icon.

Attribute
aria-label-icon
Type
string | undefined
Since 6.0.0
Description

Display selection with checkbox semantics.

Attribute
checkbox
Type
boolean
Default
false
Since 6.0.0
Description

Supporting text displayed below the label.

Attribute
description
Type
string | undefined
Since 6.0.0
Description

Disable item activation and action controls.

Attribute
disabled
Type
boolean
Default
false
Since 6.0.0
Description

Display a divider below this item when its variant is ghost.

Attribute
divider
Type
boolean
Default
false
Since 6.0.0
Description

Icon displayed by the standard item layout.

Attribute
icon
Type
string | undefined
Since 6.0.0
Description

Label displayed by the standard item layout.

Attribute
label
Type
string | undefined
Since 6.0.0
Description

Show the item as selected.

Attribute
selected
Type
boolean
Default
false
Since 6.0.0
Description

Visual variant of the item.

Attribute
variant
Type
"filled" | "ghost" | "outline"
Default
'filled'

Events​

Since 6.0.0
Description

Emitted when the primary item surface is activated.

Event
itemClick
Detail
HTMLIxListItemElement
Since 6.0.0
Description

Requests a controlled selection update when a checkbox item is activated.

Event
selectedChange
Detail
boolean

Slot​

Description

Non-interactive custom content rendered after the standard icon, label, and description layout.

Description

Interactive trailing controls that do not activate the item.