ListRow
A full-width row (≥56px): a button (onPress), a link (href), or a plain read-only row.
Signature
Density
Viewport
Theme and light/dark are set in the top barWhen to use
A full-width row (≥56px): a button (onPress), a link (href), or a plain read-only row.
Accessibility
Landmark structure (header/nav/footer) with skip-to-content support. Collapsible navigation keeps an accessible name when collapsed.
Install and import
npx shadcn@latest add @prism/list-row
import { ListRow } from '@/components/prism/ListRow';
In a no-build prototype, read it from the bundle instead: const { ListRow } = window.PrismDesignSystem_39d121;
Props
| Prop | Type | Required | Description |
|---|---|---|---|
label | React.ReactNode | Yes | The row's main text. |
description | React.ReactNode | — | A second, quieter line under the label. |
leading | React.ReactNode | — | Leading slot: an Avatar or icon. |
trailing | React.ReactNode | — | Trailing slot: a Badge, status or value. |
chevron | boolean | — | Show a trailing chevron (the row opens something). |
href | string | — | Makes the row a link (through LinkProvider); otherwise it's a button. |
target | React.AnchorHTMLAttributes<HTMLAnchorElement>["target"] | — | |
rel | string | — | |
linkComponent | LinkComponent | — | Overrides LinkProvider's link component for this row. |
onPress | (e: React.MouseEvent<HTMLElement>) => void | — | |
isDisabled | boolean | — | Greyed out and not pressable; a disabled link loses its href. |
isReadOnly | boolean | — | A plain row at full contrast: not a button or link, not in the Tab order, no press feedback (a completed roll call). It's also what you get with neither href nor onPress. aria-label is dropped; the visible text is read. |
className | string | — |