Skip to content
Kimenpre-v1
Color scheme

Component

ki-list-item

A non-interactive item inside ki-list, composed from leading media (start), primary text (default slot), optional secondary text (secondary) and trailing media or meta (end). Use it only as a child of ki-list.

Quarterly report Updated 2 days ago 1.2 MB
<ki-list>
<ki-list-item>
<span slot="start" aria-hidden="true">📄</span>
Quarterly report
<span slot="secondary">Updated 2 days ago</span>
<span slot="end">1.2 MB</span>
</ki-list-item>
</ki-list>

When to use: only as a child of ki-list, for one read-only entry in a similar vertical collection.

When not to use: outside ki-list, as a menu item, selectable option, tabular row, navigation link or whole-item clickable control.

Slots

SlotDescription
(default)Primary text line.
endTrailing media, meta text or a slotted control.
secondarySupporting text below the primary line. Its presence selects the multi-line min-height token.
startLeading media such as an icon, avatar or image.

CSS parts

PartDescription
contentText column containing primary and secondary lines.
endTrailing region wrapper.
itemItem row surface and layout container.
startLeading region wrapper.

CSS custom properties

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

TokenDescription
--ki-inverse-white-alpha-3semantic color for inverse white alpha 3.
--ki-inverse-white-alpha-6semantic color for inverse white alpha 6.
--ki-list-item-gapdimension used by the list component for item gap (MarsUI md/lg rows: Space/xl 12px between start/content/end regions).
--ki-list-item-min-heightdimension used by the list component for item min height (MarsUI md text-only row is ~40px content-sized: 20px line + 2x10 padding).
--ki-list-item-min-height-multilinedimension used by the list component for multiline item min height (MarsUI md two-line row measures 56px).
--ki-list-item-padding-blockdimension used by the list component for item padding block (MarsUI md rows: Space/lg 10px).
--ki-list-item-padding-inlinedimension used by the list component for item padding inline.
--ki-list-item-primary-fgcolor used by the list component for item primary foreground.
--ki-list-item-primary-font-sizedimension used by the list component for item primary font size.
--ki-list-item-primary-font-weightfont weight used by the list component for item primary font weight.
--ki-list-item-primary-line-heightdimension used by the list component for primary line height (MarsUI primary is UI/Para/medium 13/20, not UI/Body 1 13/24).
--ki-list-item-radiusdimension used by the list component for item radius.
--ki-list-item-secondary-fgcolor used by the list component for item secondary foreground.
--ki-list-item-secondary-font-sizedimension used by the list component for secondary font size (MarsUI description line is UI/Caption 2: 12px).
--ki-list-item-secondary-font-weightfont weight used by the list component for item secondary font weight.
--ki-list-item-secondary-line-heightdimension used by the list component for secondary line height (MarsUI caption_2 16px; same value as before with the correct provenance).
--ki-motion-duration-fastFast interaction transition duration.
--ki-motion-easing-outDecelerating interaction transition easing curve.
--ki-typography-family-bodysemantic font family for typography family body.

The default slot is the primary text of the entry. Decorative slotted icons carry aria-hidden="true". The item is never a menu item, option, row or link — those are different patterns; a control slotted in end remains an ordinary focusable control.

Documented with its parent: open ki-list in Storybook