- Customer
- Michael
- michael@example.com
- Plan
- Pro, billed yearly
- Next invoice
- $115.20 on March 1
- Notes
- Asked for invoices to include the company's tax ID from the next billing cycle.
Installation
$ pnpm dlx shadcn@latest add @synccn/description-listFirst time in this project? Connect synccn with one command.
Usage
import { DescriptionList } from "@/components/ui/status-indicator";<DescriptionList items={[{ term: "Plan", detail: "Pro" }]} />API reference
Generated from the component's TypeScript types, so it always matches the code.
DescriptionList
Key–value details, stacked on phones and side by side on wider screens. items: [{ term, detail }]
PropTypeDescription
- itemsrequired
{ term: React.ReactNode; detail: React.ReactNode }[]Rows.
- className
stringExtra classes for the root element.
Dependencies
Read from the component's imports when the site builds. The CLI installs all of these for you.
Helpers
- lib/utilscn (merges class names)
npm packages
- clsx for cn()
- tailwind-merge for cn()
Accessibility
From the source
Read from this component's code when the site builds, so it can't drift.
- ARIA roles: status
- Respects the reduced motion setting
- Shows a visible focus ring for keyboard users
- Announces changes to screen readers
More display
CardSurface with header, content and footer slots.BadgeSmall status label with an optional dot.AvatarImage with initials fallback, presence dot and stacked groups.KbdKeyboard key for shortcuts and hints.SeparatorHorizontal, vertical or labelled divider.AccordionExpanding sections with smooth height animation.