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

table

GraphTable

A framed table. Write a regular Markdown table inside the tag. For grouped sections use Sheet, and for label and value rows use Spec.

use it
Good when the numbers belong in a spreadsheet.
instead
Grouped sections are Sheet. Label/value rows are Spec.

research cost

[ WHAT THE RESEARCH COST ]
AgentTokensTool callsTime
Inks and paper115,20712016m
Overprint and drift135,21816416m
Naming the patterns186,71611218m
Total437,141396~50m
<GraphTable title="WHAT THE RESEARCH COST">

| Agent | Tokens | Tool calls | Time |
| --- | ---: | ---: | ---: |
| Inks and paper | 115,207 | 120 | 16m |
| Overprint and drift | 135,218 | 164 | 16m |
| Naming the patterns | 186,716 | 112 | 18m |
| Total | 437,141 | 396 | ~50m |

</GraphTable>

install

command

taste, explained

[ TASTE, EXPLAINED ]
DecisionReason
ease-out on enterfeels snappier
180ms, not 400msfeels faster, more responsive
springs for gesturesthey carry your momentum
scale 0.97 on pressit makes the UI feel alive
no animation at allyou open it hundreds of times
<GraphTable title="TASTE, EXPLAINED">

| Decision | Reason |
| --- | --- |
| ease-out on enter | feels snappier |
| 180ms, not 400ms | feels faster, more responsive |
| springs for gestures | they carry your momentum |
| scale 0.97 on press | it makes the UI feel alive |
| no animation at all | you open it hundreds of times |

</GraphTable>
[ PROPS ]
PropTypeDefaultDescription
titlestring—Caption drawn on the top edge of the frame.
headersstring[] | "Agent, Tokens"—Column headings. Sentence case.
rowsReactNode[][]—Body cells, one array per row. Optional when children are Markdown.
childrenMarkdown—| Agent | Tokens | | --- | ---: | | Inks and paper | 115,207 |
footerReactNode[]—Optional totals row under a rule.
align("left" | "right")[] | "left right"left, then rightPer-column alignment. Defaults to left on the first column.
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.