BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/moco/figure

Figure

moco/figure
FreeComponent

Figure plate with run-in caption, plus an editorial table with small-caps heads and hairline rules.

Live preview

live · rendered by the registry
Rendered by moco on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://mocoui.site/r/figure.json

Source

registry/figure/figure.tsxmocoui.site/r/figure.json
1import * as React from "react";
2import "./figure.css";
3
4export type FigurePlateProps = {
5 children: React.ReactNode;
6 /** Bold run-in phrase. Include its own full stop. */
7 lead: string;
8 caption: React.ReactNode;
9 id?: string;
10 /** Break out of a centred prose column to a wider measure. */
11 wide?: boolean;
12};
13
14/**
15 * A figure plate with a run-in caption. The caption sits outside the plate
16 * and always opens with a bold run-in phrase — consistency is the point.
17 */
18export function FigurePlate({ children, lead, caption, id, wide = true }: FigurePlateProps) {
19 return (
20 <figure id={id} className={`moco-plate-wrap${wide ? " moco-breakout" : ""}`}>
21 <div className="moco-plate">{children}</div>
22 <figcaption className="moco-cap">
23 <b className="moco-lead-in">{lead}</b> {caption}
24 </figcaption>
25 </figure>
26 );
27}
28
29export type EdTableProps = {
30 head: { label: string; numeric?: boolean }[];
31 rows: React.ReactNode[][];
32 /** Optional totals row, set off by a heavier rule. */
33 summary?: React.ReactNode[];
34 /** Bold run-in phrase for the caption. Include its own full stop. */
35 lead: string;
36 caption: React.ReactNode;
37 /** Index of the row to emphasise. */
38 bestIndex?: number;
39};
40
41/** Editorial table: caption below, small-caps heads, hairline rules, no zebra. */
42export function EdTable({ head, rows, summary, lead, caption, bestIndex }: EdTableProps) {
43 return (
44 <table className="moco-ed">
45 <thead>
46 <tr>
47 {head.map((h) => (
48 <th key={h.label} className={h.numeric ? "moco-n" : undefined} scope="col">
49 {h.label}
50 </th>
51 ))}
52 </tr>
53 </thead>
54 <tbody>
55 {rows.map((r, i) => (
56 <tr key={i} data-best={i === bestIndex ? "true" : undefined}>
57 {r.map((c, j) => (
58 <td key={j} className={head[j]?.numeric ? "moco-n" : undefined}>
59 {c}
60 </td>
61 ))}
62 </tr>
63 ))}
64 {summary ? (
65 <tr className="moco-summary">
66 {summary.map((c, j) => (
67 <td key={j} className={head[j]?.numeric ? "moco-n" : undefined}>
68 {c}
69 </td>
70 ))}
71 </tr>
72 ) : null}
73 </tbody>
74 <caption>
75 <b className="moco-lead-in">{lead}</b> {caption}
76 </caption>
77 </table>
78 );
79}

What it pulls in

Other registry items

  • https://mocoui.site/r/tokens.json

Files it writes

  • registry/figure/figure.tsx
  • registry/figure/figure.css

Facts

Registry
moco
Type
registry:component
Access
Free
Files written
2
Licence
MIT
In the index
at or before 2026-08-16
Last confirmed
today

Go to the source

Docs on moco mocoui.site shreya0204/moco on GitHub Raw registry item This item as JSON

More from moco

All 20 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
CodecodemocoComponentsFree1 dep · 3 files
ComparecomparemocoComponentsFreeno deps · 2 files
Count UpcountupmocoComponentsFreeno deps · 2 files
CovercovermocoComponentsFreeno deps · 2 files
Diagram KitdiagrammocoComponentsFreeno deps · 2 files
Dot GriddotgridmocoComponentsFreeno deps · 2 files
HookshooksmocoComponentsFreeno deps
IslandislandmocoComponentsFreeno deps · 2 files

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex