Stack List
A dense one-column list for people, projects and conversations. Rows enter in a short stagger, glide to their new place when the data changes and collapse away when removed. It groups under sticky headings with a jump rail, shows presence, a badge, a few avatars and a row menu.
pixikit.com/docs/app-ui/lists/stack-list
Customize
Surface
Density
Divided
Grouped
Jump rail
Trailing
Truncate
Height420px
Loading
Props
15| Name | Type | Default | Description |
|---|---|---|---|
items | StackItem[] | Required | The rows, in order. |
onAction | (itemId: string, actionId: string) => void | None | Called when a row menu entry is picked. |
onSelect | (itemId: string) => void | None | Called when a row is clicked. |
surface | "plain" | "card" | "card" | `card` frames the list. |
density | "comfortable" | "compact" | "comfortable" | How much room a row takes. |
divided | boolean | true | Lines between rows. |
grouped | boolean | false | Sections the rows by their `group`, with sticky headings. |
jumpRail | boolean | false | With `grouped`, a slim rail of the group names on the end edge that scrolls to a group. |
trailing | "chevron" | "menu" | "none" | "chevron" | What sits at the end of a row. |
truncate | boolean | true | Keeps titles and subtitles to one line. |
height | number | None | Maximum height in px; the list then scrolls inside itself. |
loading | boolean | false | Shows rows shaped like the real ones. |
empty | ReactNode | None | Shown when there are no rows. |
ariaLabel | string | "List" | Name for the list, read by screen readers. |
className | string | None |