Skip to main content

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 bar
Live demo
Open ↗

When 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​

PropTypeRequiredDescription
labelReact.ReactNodeYesThe row's main text.
descriptionReact.ReactNode—A second, quieter line under the label.
leadingReact.ReactNode—Leading slot: an Avatar or icon.
trailingReact.ReactNode—Trailing slot: a Badge, status or value.
chevronboolean—Show a trailing chevron (the row opens something).
hrefstring—Makes the row a link (through LinkProvider); otherwise it's a button.
targetReact.AnchorHTMLAttributes<HTMLAnchorElement>["target"]—
relstring—
linkComponentLinkComponent—Overrides LinkProvider's link component for this row.
onPress(e: React.MouseEvent<HTMLElement>) => void—
isDisabledboolean—Greyed out and not pressable; a disabled link loses its href.
isReadOnlyboolean—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.
classNamestring—