Description List

Loading...

Installation

Add the component with the CLI.

npx shadcn@latest add @intentui/description-list

Anatomy

import { DescriptionDetails, DescriptionList, DescriptionTerm } from "@/components/ui/description-list"
<DescriptionList>
  <DescriptionTerm>Invoice Number</DescriptionTerm>
  <DescriptionDetails>INV-12345</DescriptionDetails>
  <DescriptionTerm>Invoice Date</DescriptionTerm>
  <DescriptionDetails>September 21, 2024</DescriptionDetails>
</DescriptionList>

Manual installation

Install the dependencies, then copy the component source into your project.

npm install cn

Examples

With heading

Add a heading above the description list.

Loading...

With card

Place the description list inside a card to group related details.

Loading...

Component API

DescriptionDetails

DescriptionDetails extends the native <dd> element.

classNamestring

DescriptionList

DescriptionList extends the native <dl> element.

classNamestring

DescriptionTerm

DescriptionTerm extends the native <dt> element.

classNamestring
Design