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.
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
- 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.
- Command
pnpm dlx shadcn@latest add @mdxcn/all- Lands in
registry/defaultEdit 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>| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | — | Caption drawn on the top edge of the frame. |
| rows | SpecRow[] | — | label, value, and optional accent. Optional when children are Markdown. |
| children | Markdown | — | - Family: Geist Mono |
| corner | string | "+" | 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. |
| className | string | — | Passed to the outer frame. |