Skip to content
Kimenpre-v1
Color scheme

Component

ki-list

A non-interactive vertical list container for read-only collections of similar entries, composed with ki-list-item children.

Ada Lovelace Analyst Active Grace Hopper Rear admiral Away
<ki-list>
<ki-list-item>
<ki-avatar slot="start" initials="AL" label="Ada Lovelace"></ki-avatar>
Ada Lovelace
<span slot="secondary">Analyst</span>
<ki-badge slot="end" tone="success">Active</ki-badge>
</ki-list-item>
<ki-list-item>
<ki-avatar slot="start" initials="GH" label="Grace Hopper"></ki-avatar>
Grace Hopper
<span slot="secondary">Rear admiral</span>
<ki-badge slot="end" tone="neutral">Away</ki-badge>
</ki-list-item>
</ki-list>

When to use: settings, contacts, results or activity feeds where each item composes leading media, primary text, optional secondary text and trailing meta or a slotted control.

When not to use: menus, selectable option lists, tabular data, navigation, whole-item clickable rows or lone items outside a list.

Slots

SlotDescription
(default)ki-list-item children. Other children are unsupported.

CSS parts

PartDescription
listList surface that owns background, padding, item gap and between-item divider styling.

CSS custom properties

The public styling contract of ki-list: reassign these tokens at :root or on a subtree — never override internals.

TokenDescription
--ki-list-bgcolor used by the list component for background.
--ki-list-gapdimension used by the list component for gap (MarsUI compositions stack rows contiguously; --ki-list-gap stays as the theme hook).
--ki-list-item-divider-colorcolor used by the list component for item divider color.
--ki-list-item-divider-widthdimension used by the list component for item divider width (no divider renders in any master variant; the color hook ki.list.item.divider-color stays so consumers can opt hairlines back in).
--ki-list-paddingdimension used by the list component for padding.
--ki-motion-distance-xsMotion travel distance xs (2px): hover-lift offsets.
--ki-motion-duration-fastFast interaction transition duration.
--ki-motion-duration-medium-1M3 md.sys.motion.duration.medium1 (250ms). onmars: MarsUI moderate step (240ms, 2x the 120ms base).
--ki-motion-easing-outDecelerating interaction transition easing curve.
--ki-typography-family-bodysemantic font family for typography family body.

The list is read-only: menus, selectable option lists, tabular data and navigation are different patterns with different semantics — use a menu, ki-select, a table or links respectively. A slotted control inside an item (in end, say) stays an ordinary, individually focusable control; whole-item clickable rows are unsupported.

Open ki-list in Storybook