Skip to content
mdxcn is now part of Shadcn Labs. details

spec

GraphSpec

Aligned label and value rows. Write `- Family: Geist Mono`. Inline code and links work, and an indented paragraph appears under its value. For headline numbers use Stat, and for a table with headers use Table.

use it
Good for aligned label and value rows, like a spec sheet.
instead
Large headline numbers are Stat. A table with headers is Table. Grouped sections are Sheet.

type

[ TYPE ]
Family
Geist Mono
Size
14 / 21
Tracking
+0.02em
Figures
tabular
Accent
--graph-accent
<GraphSpec title="TYPE">

- Family: Geist Mono
- Size: 14 / 21
- Tracking: +0.02em
- Figures: tabular
- **Accent: --graph-accent**

</GraphSpec>

install

command

ship to

[ SHIP TO ]
Name
A. Rao
City
Bengaluru
Carrier
Delhivery
ETA
Thu
<GraphSpec title="SHIP TO">

- Name: A. Rao
- City: Bengaluru
- Carrier: Delhivery
- **ETA: Thu**

</GraphSpec>

inline code and notes

Code and links in a value survive. Leave blank lines between rows and an indented paragraph sits under the value.

[ INSTALL ]
Command
pnpm dlx shadcn@latest add @mdxcn/all
Lands in
registry/default

Edit it there. Nothing to update later.

Needs
<GraphSpec title="INSTALL">

- Command: `pnpm dlx shadcn@latest add @mdxcn/all`

- Lands in: `registry/default`

  Edit it there. Nothing to update later.

- Needs: [motion](https://motion.dev/?utm_source=mdxcn.dev)

</GraphSpec>
[ PROPS ]
PropTypeDefaultDescription
titlestring—Caption drawn on the top edge of the frame.
rowsSpecRow[]—label, value, and optional accent. Optional when children are Markdown.
childrenMarkdown—- Family: Geist Mono
cornerstring"+"Character at each corner of the frame.
frame"box" | "corners" | "rule" | "none""box"box draws the dashed border. corners keeps only the corner marks. rule draws dashed lines above and below. none drops the border and padding, and puts the title above the content.
classNamestring—Passed to the outer frame.