Doc components
Frames, flow diagrams, wireframes, and screen mockups for building visual, developer-friendly docs.
A small kit of visual primitives you can drop straight into any .mdx page — browser and phone frames for screen mockups, flow diagrams, low-fi wireframes, and a screen kit (BrandBar, Logo, Field, Button, Chip) to recreate real UI inline. Everything uses the docs theme, so it stays in the monospace, dark aesthetic.
Screen mockups
Wrap mock UI in a <Frame> to show it in a browser or phone. Here's the cobranded sign-in screen, built inline — a real mockup, sitting next to the code that produced it.
<Frame variant="browser" url="hypery.ai/login?continue=purchase-sdk">
<BrandBar color="#6C47FF" />
<Logo letter="P" color="#6C47FF" />
<Button variant="outline" full>Continue with Google</Button>
<Field label="Email" placeholder="you@example.com" />
<Button variant="primary" color="#6C47FF" full>Email me a sign-in link</Button>
</Frame>variant is browser (default), window, or mobile. Pass a color to any screen-kit element to brand it; omit it to use the docs accent.
Flow diagrams
<Flow> lays out <FlowNode>s with arrows between them — good for auth flows, request lifecycles, and state machines. Mark the active path with active, and optional steps with dashed.
<Flow>
<FlowNode label="Your app" caption="[ Buy · $4.99 ]" active />
<FlowNode label="Sign in to Hypery" caption="if not signed in" dashed />
<FlowNode label="Add a card" caption="if none on file" dashed />
<FlowNode label="Charged" caption="back on your app" active />
</Flow>Add vertical for a top-to-bottom flow.
Wireframes
For low-fidelity layout sketches, <Wireframe> + <WireBlock> render hatched placeholder regions.
<Wireframe label="Dashboard layout">
<WireBlock h="sm" label="top nav" />
<WireBlock h="lg" label="sidebar" />
<WireBlock h="lg" label="content" />
</Wireframe>Captions
Wrap any visual in <Figure caption="…"> to add a monospace caption.
Reference
variant browser · window · mobile · url · title. Chrome around any mock UI.active, dashed, caption, vertical.label, h (sm/md/lg/xl).BrandBar · Logo · Field · Button · Chip. All take color.These render with the docs theme tokens, so they inherit the monospace type and accent automatically. Pass a color only when a mockup needs a different brand (like a developer app's).