Files
hyperframes/docs/catalog/components/onboarding-stepper-flow.mdx
T
Ular Kimsanov a06fdfe26e docs(catalog): put each item page's title, description and Docs text in the server HTML (#6711)
* docs(catalog): put each item page's title, description and Docs text in the server HTML

Mintlify renders snippet components in the browser only, so everything inside
CatalogDetail (title, standfirst, the Docs tab) was missing from the HTML search
engines read: 448 catalog pages served Googlebot no body text. The generator now
writes the H1 and standfirst as page markup above the component and the Docs tab
as page markup after it, shown with that tab (docs/custom.css). The component no
longer draws its own title. Pages patched structurally only; registry drift on 14
pages is left for a regeneration of its own.

* docs(catalog): keep the title's top spacing the component gave it

* fix(docs): catalog titles and descriptions keep markdown markers literal

MDX reads text inside the static <h1> and <p> as inline markdown, so @_blue_sweater_
rendered as italic blue_sweater. mdxText now writes backslash, backtick, * _ [ ] ~ as
character references too, with a unit test; the four affected pages are re-escaped.
2026-10-30 15:48:25 +00:00

157 lines
4.5 KiB
Plaintext

---
title: "Onboarding Stepper Flow"
description: "A composed onboarding flow with milestone rail, active step card, and next-action button"
mode: "frame"
---
import { CatalogDetail, CatalogSlot } from "/snippets/catalog-detail.jsx";
import { InstallCommand } from "/snippets/install-command.jsx";
<div className="hf-ve-static-head not-prose">
<h1>Onboarding Stepper Flow</h1>
<p>A composed onboarding flow with milestone rail, active step card, and next-action button</p>
</div>
<CatalogDetail
previewSrc="/public/catalog/components/onboarding-stepper-flow.json"
compositionId="onboarding-stepper-flow"
compositionSrc="compositions/components/onboarding-stepper-flow.html"
title="Onboarding Stepper Flow"
variables={[]}
meta={{"category":"Effects","badge":"Stable","codeLines":92}}
attribution={{"path":"registry/components/onboarding-stepper-flow","tags":["ui-flow","onboarding","stepper"]}}
hasCode
rawUrl="https://raw.githubusercontent.com/heygen-com/hyperframes/main/registry/components/onboarding-stepper-flow/onboarding-stepper-flow.html"
>
<CatalogSlot slot="code">
```html onboarding-stepper-flow.html
<!--
Onboarding Stepper Flow - Composed UI flow for HyperFrames.
Paste the markup and CSS into a composition. Use the timeline integration
note at the bottom as the starting point for deterministic GSAP animation.
-->
<div class="hf-ui-onboarding-flow">
<div class="hf-ui-onboarding-steps">
<span class="done">1</span><span class="active">2</span><span>3</span>
</div>
<div class="hf-ui-onboarding-card">
<small>Step 2 of 3</small>
<strong>Choose your visual style</strong>
<p>Pick a direction so the agent can generate matching motion primitives.</p>
<button type="button">Continue</button>
</div>
</div>
<style>
.hf-ui-onboarding-flow {
display: grid;
gap: 22px;
width: 520px;
color: #18181b;
font-family: Inter, system-ui, sans-serif;
}
.hf-ui-onboarding-steps {
display: flex;
justify-content: center;
gap: 18px;
}
.hf-ui-onboarding-steps span {
display: grid;
place-items: center;
width: 44px;
height: 44px;
border: 2px solid #e4e4e7;
border-radius: 999px;
background: #ffffff;
color: #71717a;
font-weight: 900;
}
.hf-ui-onboarding-steps .done,
.hf-ui-onboarding-steps .active {
border-color: #18181b;
background: #18181b;
color: #ffffff;
}
.hf-ui-onboarding-card {
display: grid;
gap: 14px;
padding: 34px;
border: 1px solid #e4e4e7;
border-radius: 28px;
background: #ffffff;
box-shadow: 0 26px 80px rgba(0, 0, 0, 0.1);
}
.hf-ui-onboarding-card small {
color: #71717a;
font-weight: 900;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.hf-ui-onboarding-card strong {
font-size: 30px;
line-height: 1;
}
.hf-ui-onboarding-card p {
margin: 0;
color: #71717a;
font-size: 16px;
line-height: 1.45;
}
.hf-ui-onboarding-card button {
justify-self: start;
height: 46px;
padding: 0 19px;
border: 0;
border-radius: 14px;
background: #18181b;
color: #ffffff;
font-weight: 900;
}
</style>
<!--
Timeline integration:
tl.fromTo('.hf-ui-onboarding-steps span', { scale: 0.7, opacity: 0 }, { scale: 1, opacity: 1, duration: 0.28, stagger: 0.08, ease: 'back.out(1.8)' }, 0.3);
tl.fromTo('.hf-ui-onboarding-card', { y: 28, opacity: 0 }, { y: 0, opacity: 1, duration: 0.42, ease: 'power3.out' }, 0.62);
tl.to('.hf-ui-onboarding-steps .active', { scale: 1.16, duration: 0.16, yoyo: true, repeat: 1, ease: 'power1.inOut' }, 1.1);
-->
```
</CatalogSlot>
<CatalogSlot slot="install">
<InstallCommand command="npx hyperframes add onboarding-stepper-flow" item="onboarding-stepper-flow" />
That writes one file: `compositions/components/onboarding-stepper-flow.html`.
</CatalogSlot>
</CatalogDetail>
<div data-static-slot="docs" className="prose prose-gray dark:prose-invert">
## Paste it into your composition
Open `compositions/components/onboarding-stepper-flow.html` and copy what is inside into your own composition.
The file opens with a comment header that walks you through it.
A component has no size or duration of its own. It takes both from the composition
you paste it into.
{/* hf:generated-footer */}
Tagged `ui-flow` `onboarding` `stepper`.
## Related topics
- [Browse the complete Catalog](/catalog)
- [Add assets and Catalog items in the browser editor](/studio/assets-and-blocks)
- [Put blocks together into one video](/concepts/compositions)
</div>