Sakani

List Item

A row with leading and trailing slots, for lists that aren't tabular enough to be a table.

List or table?

A Table is for comparing the same fields down a column. Use list items when each row is a thing rather than a record — files, conversations, settings — and nobody needs to scan one attribute vertically.

Slots

Selection

Props

PropTypeDefaultDescription
titlestringPrimary line.
descriptionstringSecondary line under the title.
leadingReactNodeLeft slot: an avatar, icon, or checkbox.
trailingReactNodeRight slot: a badge, chevron, or action.
selectedbooleanfalseMarks the row as the current selection.
disabledbooleanfalseDims the row and drops its click handler.
onClick() => voidClick handler.