list rows
rows for tasks, chapters and notes. a ruled row keeps a place for its lead, title, time, context and actions; a plain row is a line of words that links.
bunx --bun shadcn@latest add @mk/list-rowsserves constellation, quanta, trisys, orbit, the public site.
example
check the first task to complete it, or pin it for later. its title links to the states below; the next titles are plain text. the meta line holds context and prints the dot between its pieces. a status sits outside it, as a small badge in the aside.
title states
a title prints in foreground, linked or plain. hover adds an underline to a link, and keyboard focus draws the control ring. a closed row stays in the list, with its title muted and struck through. a receding row is still live and fading, so its title prints muted with no strike.
rest
one real link
hover
the title is underlined
focus
2 px ring outside the title
closed
muted and struck through
receding
muted, no strike
rest
one real link
hover
the title is underlined
focus
2 px ring outside the title
closed
muted and struck through
receding
muted, no strike
under a section header
straight under a SectionHeader the rows hang from its rule, so one rule prints above them.
this week
2this week
2markers
variant="markers" makes ListRowActions a muted line of facts, read from the row’s start. kind="id" sets a title in mono. a piece that renders nothing takes its dot with it, and an empty meta line or actions line takes no room, so the second row here is one line.
on a phone
at 600 px and below, the aside moves under the title and before the meta line. this frame gives the row a real phone viewport.
a day's rows
variant="day" sets a row on one 44 px line with no rule: ListRowTime, the title, ListRowKind and ListRowWhen. the columns hold across rows, so a row with no kind leaves its column open. a kind is a muted word until it gets an href, and then it prints as a link. what ends the row is a time or one small control. a long title truncates.
- team standup
- renewal callbrief
- a meeting whose title runs on past the end of its one line, as long titles dotentative
- team standup
- renewal callbrief
- a meeting whose title runs on past the end of its one line, as long titles dotentative
on a phone the time column is 44 px and the end column 48 px. the title keeps half the row, so the kind gives way first. each row stays 44 px, and a small button fills its column.
plain rows
a plain row has no rules and no padding, so a list reads as words. the whole row is the link, its title holds one line at weight 400 and cuts at its end, and ListRowKind and ListRowWhen take 80 and 128 px columns. a row leaves out a column it doesn’t print, and an empty ListRowWhen holds its place.
three forms set the height: plain is 40 px, nested is 36 px for a list under a quiet head, and ruled is 48 px with a rule that bleeds to the panel’s edges. a tick hangs in the gutter, so every title keeps the list’s left edge.
plain title states
hover underlines the words, and keyboard focus rings the whole row, inside it when the row is ruled, since a ruled row reaches the panel’s edges. a tick or an action sits above the link and keeps its own click.
rest
one link across the row
hover
the words underline
focus
2 px ring outside the row
closed
muted and struck through
rest
one link across the row
hover
the words underline
focus
2 px ring outside the row
closed
muted and struck through
plain rows on a phone
at 600 px and below, every form is 56 px, with the title over kind · when and when in the interface face. the tick moves to the right edge at 44 px, and actions take their own line. a list that sets clamp lets its titles take two lines, as the middle list does here. both frames use a 390 px viewport.
plain parts
PlainRows- the list.
variantisplain,nestedorruled, andclamplets a title take two lines on a phone. PlainRow- one row.
closedkeeps it in the list, muted and struck through. PlainRowTitle- stretches its link over the row when it gets an
hrefor the app’s router link throughrender, and stays plain text without one. ListRowKind,ListRowWhen- the columns, the same parts a day row takes. they fold under the title on a phone with a dot between them. a control takes
PlainRowActions, which sits above the row’s link. PlainRowTick- holds a checkbox in the gutter, or at the right edge on a phone.
PlainRowActions- buttons at the row’s end, on their own line on a phone.