Docs components
The MDX components available on every page — FileTree, Terminal, TerminalLine, CommandTabs, Mermaid and VhsDemo — with live examples and props.
Every page can use the components below without any import — they are
registered in the global MDX component map (docs/components/mdx.tsx).
Fumadocs built-ins (Callout, Card, Cards, Steps, Step, Tabs,
Tab) are registered the same way. If you need a component that is not
listed here, add it to the map before using it — pages never import
components directly (see How to extend the docs).
Components must stay theme-aware and responsive: they are rendered on
/en and /zh, in light and dark mode, on phones. Verify both themes
before merging a change to a component.
FileTree
Renders a directory layout from structured props — folder and file icons,
nested children, and a small note badge for annotations such as tokens,
entrypoint or [ORPHAN]. Use it instead of an ASCII tree in a plain-text
code block. Deep trees scroll horizontally.
- agore.yamlworkspace config
- skills/demo-skill
- SKILL.mdentrypoint
- references
- guide.md108 tokens
- dist
- demo-skill_v0.0.0-snapshot.zip
- demo-skill_v0.0.0-snapshot.tar.gz
Prop
Type
Source: docs/components/file-tree.tsx.
Terminal
A terminal window: traffic lights and an optional title bar, command lines
with a $ prompt and a copy button, and output lines in five tones
(default, success, warning, error, muted). Output wraps by
default; pass noWrap for aligned ASCII panels, which then scroll
horizontally instead.
$agore-skill release --skill demo-skill --snapshot --clean✓ Bundled demo-skill v0.0.0-snapshot
snapshot mode: nothing was published
warning: example warning tone
error: example error tone
╭──────────────────────────────────╮
│ demo-skill skills/demo-skill │
╰──────────────────────────────────╯
Prop
Type
Source: docs/components/terminal.tsx.
CommandTabs
Tabbed alternative commands — e.g. go install vs building from source,
gh vs GITHUB_TOKEN — built on Fumadocs Tabs. Labels come from items;
each Tab (index-matched) holds one variant, usually a Terminal.
$go install github.com/agore-dev/agore-skill/cmd/agore-skill@latestProp
Type
Source: docs/components/command-tabs.tsx.
Mermaid
Renders a Mermaid diagram from a chart string. The component is
client-only (no SSR crash), theme-aware (colors are read from the site's
CSS variables on every theme switch), renders with strict security, and
falls back to a warning plus the source text when the chart does not
compile. Give complex flows a diagram where they explain — not as
decoration — and keep labels readable in both locales.
Prop
Type
Guidelines: keep labels free of <, ${ and backticks; avoid \n inside
node labels; prefer flowchart over the legacy graph keyword. If a
diagram fails to render, the page still builds — the error box names the
syntax problem.
Source: docs/components/mermaid.tsx.
VhsDemo
Embeds a terminal recording rendered by VHS from docs/vhs/*.tape into
docs/public/demos/. Give it the demo name (the tape's file stem) plus the
caption/alt any figure needs. format="gif" (default) renders a
lazy-loaded looping image — the default for docs pages; format="mp4"
renders a muted, autoplaying, looping video with the GIF as its poster —
used on the landing page, where bandwidth matters most. Both outputs are
produced by the same tape, so the two formats never drift apart. Demos stay
rare by design: embed one where a recording explains more than a Terminal
transcript does (the tutorial, the release how-to, the CLI reference, the
landing page).

Prop
Type
Guidelines: every demo must be renderable from docs/vhs/*.tape (see
How to record VHS demos); keep
alt specific about what happens in the recording; keep the total number of
demos per page at one or two so page weight stays sane.
Source: docs/components/vhs-demo.tsx.
Fumadocs built-ins
Prefer the built-ins over inventing duplicates: Callout (types info,
warn, error, success), Card/Cards, Steps/Step and
Tabs/Tab are already in the component map.
Steps render a numbered procedure — use them when order is the point.
Everything else that is plain prose or a plain code fence stays plain Markdown; the custom components exist for structures that Markdown cannot express.
Related
- How the component map is wired: Docs stack
- Add a page: How to extend the docs