List - Code
Variants
Additional options
Draggable
Action on hover
Custom content
User list
Notification list
API for ix-list
Properties
Show action content on hover or focus for list items that do not define their own setting.
action-on-hoverboolean | undefinedDefault action slot alignment for list items that do not define their own setting.
action-slot-alignment"center" | "start" | undefinedEnable activation for list items that do not define their own setting.
activeboolean | undefinedDisplay selection checkboxes on list items that do not define their own setting.
checkboxboolean | undefinedDefault disabled state for list items that do not define their own state.
disabledboolean | undefinedDisplay dividers between direct list items with the ghost variant.
dividerbooleanfalseVisual behavior used while dragging a list item.
drag-behavior"dynamic" | "separator"'dynamic'Enable drag-and-drop reordering of direct list items.
draggablebooleanfalsei18n fallback label for list items without a label.
i18n-list-itemstring'List item'i18n announcement when list item reordering is cancelled.
Use {item} for the item label.
i18n-reorder-cancelledstring'{item} reorder cancelled.'i18n announcement when a reordered list item is dropped.
Use {item}, {position}, and {total} placeholders.
i18n-reorder-droppedstring'{item} dropped at position {position} of {total}.'i18n announcement when a list item is lifted for reordering.
Use {item} for the item label.
i18n-reorder-liftedstring'{item} lifted. Use arrow keys to move, Enter or Space to drop, and Escape to cancel.'i18n announcement when a list item changes position.
Use {item}, {position}, and {total} placeholders.
i18n-reorder-positionstring'{item}, position {position} of {total}'Space between direct list items.
item-gap"lg" | "md" | "none" | "sm"'sm'Default visual variant for list items that do not define their own variant.
variant"filled" | "ghost" | "outline" | undefinedEvents
Emitted after a list item has been reordered.
itemOrderChange{ item: HTMLIxListItemElement; oldIndex: number; newIndex: number; }Slot
List items and optional group separators.
API for ix-list-item
Properties
Show action slot content only when the item is hovered or focused.
action-on-hoverbooleanfalseVertical alignment of the action slot content.
action-slot-alignment"center" | "start"'center'Enable activation of the primary item surface.
activebooleanfalseAccessible label for the selection checkbox.
aria-label-checkboxstring'Select list item'Accessible label for the drag gripper.
aria-label-drag-gripperstring'Reorder list item'Accessible label for the item icon.
aria-label-iconstring | undefinedDisplay selection with checkbox semantics.
checkboxbooleanfalseSupporting text displayed below the label.
descriptionstring | undefinedDisable item activation and action controls.
disabledbooleanfalseDisplay a divider below this item when its variant is ghost.
dividerbooleanfalseIcon displayed by the standard item layout.
iconstring | undefinedLabel displayed by the standard item layout.
labelstring | undefinedShow the item as selected.
selectedbooleanfalseVisual variant of the item.
variant"filled" | "ghost" | "outline"'filled'Events
Emitted when the primary item surface is activated.
itemClickHTMLIxListItemElementRequests a controlled selection update when a checkbox item is activated.
selectedChangebooleanSlot
Non-interactive custom content rendered after the standard icon, label, and description layout.
Interactive trailing controls that do not activate the item.