Menu

Description list

Label / value details. 2 layouts.

Customer
Nusrat Jahan
Address
House 14, Road 5, Dhanmondi, Dhaka
Payment
bKash, paid
Total
৳1,260

Installation

$ npx uix-ui@latest add description-list

This copies the file into components/ui/description-list.tsx in your project. npx shadcn@latest add @uix/description-list works too.

Usage

description-list.tsx
import { DescriptionList } from "@/components/ui/description-list";

<DescriptionList
  style={{ width: 460, maxWidth: "100%" }}
  items={[
    { term: "Customer", detail: "Nusrat Jahan" },
    { term: "Address", detail: "House 14, Road 5, Dhanmondi, Dhaka" },
    { term: "Payment", detail: "bKash, paid" },
    { term: "Total", detail: "৳1,260" },
  ]}
/>

Props

PropTypeDefaultDescription
layouthorizontal | stacked"horizontal"
itemsDescriptionItem[]–Rows of label + value. A Badge works as a value (a status).

Everything else is passed to the root element, so className, aria-* and event handlers work as usual.

Dependencies

Installed for you by the CLI.

  • class-variance-authority
  • clsx
  • tailwind-merge
  • lib/utils.ts
esc

↑↓ to navigate · ↵ to select · esc to close