fma-ds

Description List

Term/value pairs on a semantic <dl>: DescriptionList > DescriptionItem > DescriptionTerm + DescriptionDetails.

Data displayoriginalMITChangelogRegistry JSON

Overview

  • `layout="inline"` (default): each value at the end of its row, right-aligned with tabular numbers — for order summaries, totals and plan details.
  • `layout="stacked"`: the value under a smaller term, in a grid whose columns you set with className — for record details.
  • `divided`: draws rules between rows.
  • Icons: an icon inside DescriptionTerm sits before the label.

Installation

  1. 1

    Register the @fma-ds namespace in components.json (once)

    components.json
    {  "registries": {    "@fma-ds": "https://ds.fmartinsandre.dev.br/r/{name}.json"  }}
  2. 2

    Add the item

    pnpm dlx shadcn@latest add @fma-ds/description-list

    Files land in components/fma-ds/description-list.tsx; npm and registry dependencies are installed along with them.

Dependencies

npm
class-variance-authority@^0.7.1cn@^0.5.0
Registry
None