Skip to content
synccn

Description List

New

Key–value details that stack on phones.

Customer
Michael
Email
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-list

First 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 }]

  • itemsrequired
    { term: React.ReactNode; detail: React.ReactNode }[]

    Rows.

  • className
    string

    Extra 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

npm packages

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