A year of releases as one road that draws itself while the page scrolls. The stage pins, the path runs through each milestone with a dot on its tip, each release card lights as the path reaches it and a counter ticks. On phones it is a list with a rail, and under reduced motion the whole road is drawn at once.
On this page
- A year of releases on a landing page
- A product roadmap told by scroll
- A migration story
- A changelog home
Examples
As a list
Under 640px wide, on short screens and under reduced motion the road becomes a list with a rail. This is also what renders before JavaScript.
Installation
npx knowns-ui@latest add release-pathPaste this into your coding agent (Claude Code, Cursor, Codex). It checks your project, sets up the registry, runs the install and verifies it.
Install Release path from Knowns UI into this project. Work step by step, show me each change, and ask before you edit files outside this project.
Context: Knowns UI (https://ui.knowns.dev) is a shadcn registry. Items land in the project as source files. Docs: https://ui.knowns.dev/docs/release-path
1. Check the project first. Stop and tell me if any of these is missing:
- React 19 and Tailwind CSS v4.
- A components.json at the project root. If there is none, ask me before running `npx knowns-ui@latest init --no-key` (it runs shadcn init when needed, then adds the registries).
2. Run:
```bash
npx knowns-ui@latest add release-path
```
It writes these files:
- lib/knowns/run.ts
- lib/knowns/json.tsx
- lib/knowns/status.ts
- lib/knowns/tone.ts
- lib/knowns/types.ts
- lib/knowns/use-abortable.ts
- lib/knowns/utils.ts
- lib/knowns/motion.tsx
- lib/knowns/motion-utils.ts
- components/ui/knowns/code-block/code-block.tsx
- components/ui/knowns/code-block/code-block-utils.ts
- components/ui/knowns/blocks/content/prose.tsx
- components/ui/knowns/blocks/content/content-utils.ts
- components/ui/knowns/use-floating.ts
- components/ui/knowns/tooltip.tsx
- components/ui/knowns/tooltip-utils.ts
- components/ui/knowns/toggle-group.tsx
- components/ui/knowns/blocks/content/changelog-feed.tsx
- lib/knowns/scroll-stage.ts
- lib/knowns/scroll-stage-utils.ts
- components/ui/knowns/blocks/marketing/release-path.tsx
- components/ui/knowns/blocks/marketing/release-path-utils.ts
and installs these npm packages: clsx@^2.1.1, tailwind-merge@^3.7.0.
3. While it runs:
- It also adds a few @keyframes (all named kn-*) to the global CSS file (globals.css or the file components.json points at). Let it: they only add animations.
- If it asks to overwrite files under lib/knowns/: these are shared by every Knowns UI item. List them, say whether I changed them (check git), and ask me before you answer.
- If it asks to overwrite any other file, show me the diff and ask me.
4. Verify:
- Every file in the list above exists.
- The project type-checks (for example `npx tsc --noEmit`) and the dev build has no new errors.
5. Use it: follow the examples and props on https://ui.knowns.dev/docs/release-path, and ask me if anything about my data is unclear.
If the Knowns UI MCP server is connected (https://ui.knowns.dev/docs/ai-and-mcp), use get_component({ name: "release-path" }) or search_docs for details.
Finish with a short summary: the files you added or changed, the packages you installed, and anything I still need to do.Props
- entriesrequired
ChangelogEntry[]- Releases oldest first. Two to six read best on the road.
- title
ReactNode- Heading above the stage.
- description
ReactNode- One or two sentences under the heading.
- metric
{ label, values, format? }- A counter: values[i] shows once release i is reached.
- scrollLength
number- Default
2 - Extra scroll while pinned, in views.
- root
RefObject<HTMLElement>- Default
window - A scroll container to measure against.
- subscribe
(onScroll) => () => void- An outside scroll source (a smooth-scroll library).
- viewHeight
string- Default
"100svh" - One view as a CSS length; the container's height with root.
- layout
"auto"|"list"- Default
"auto" - The pinned road where it fits, or always the list.
- metricSize
"md"|"lg"- Default
"md" - The counter's scale. lg (64px) when the stage is a page's one figure.
- road
boolean- Default
false - Lays a wide road under the path, so the path reads as its lane line. Colour from --kn-road, else muted. The cards sit clear of it.
- as
"h2"|"h3"- Default
"h2" - Heading level.
- className
string- On the section.
| Prop | Type | Default | Description |
|---|---|---|---|
| entriesrequired | ChangelogEntry[] | required | Releases oldest first. Two to six read best on the road. |
| title | ReactNode | - | Heading above the stage. |
| description | ReactNode | - | One or two sentences under the heading. |
| metric | { label, values, format? } | - | A counter: values[i] shows once release i is reached. |
| scrollLength | number | 2 | Extra scroll while pinned, in views. |
| root | RefObject<HTMLElement> | window | A scroll container to measure against. |
| subscribe | (onScroll) => () => void | - | An outside scroll source (a smooth-scroll library). |
| viewHeight | string | "100svh" | One view as a CSS length; the container's height with root. |
| layout | "auto" | "list" | "auto" | The pinned road where it fits, or always the list. |
| metricSize | "md" | "lg" | "md" | The counter's scale. lg (64px) when the stage is a page's one figure. |
| road | boolean | false | Lays a wide road under the path, so the path reads as its lane line. Colour from --kn-road, else muted. The cards sit clear of it. |
| as | "h2" | "h3" | "h2" | Heading level. |
| className | string | - | On the section. |
Accessibility
- Each release is an article with its version, a time element and its title as a heading, in path order.
- The path, nodes, rider and rail are decorative and hidden from assistive tech; the cards carry the content.
- Cards for later releases are dimmed, never hidden, so the whole road can be read at any point.
- The counter is a plain number; it does not announce each tick.
What it handles
- 01Lays two to six releases on one curve and draws it as the page scrolls, with a rider dot on its tip.
- 02Fills each milestone and brings its card to full strength as the path reaches it; the cards for later releases stay readable, only dimmed.
- 03Ticks a counter (teams, requests, installs) to the value of the last release reached.
- 04Turns into a list with a rail on phones and short screens; the rail fills as the list goes by.
- 05Shows the whole road drawn under reduced motion and before JavaScript, so nothing waits for the scroll.
- 06Takes changelog-feed entries as they are, oldest first.
States
- First render
- The stacked list, every card visible
- none
- Pinned (640px and wider, 560px tall)
- The path draws with the scroll, the rider leads it
- follows the scroll, no time easing
- Milestone reached
- Its node fills with the accent; its card goes from 42% to full
- 180ms colour, ease out; card over 8% of the path
- Counter
- Ticks to the reached release's value
- 280ms, TickNumber
- Phone
- A list; the rail fills as the list scrolls past
- follows the scroll
- Reduced motion
- The list with the rail drawn and every card at full strength
- 0ms
| State | What moves | Timing |
|---|---|---|
| First render | The stacked list, every card visible | none |
| Pinned (640px and wider, 560px tall) | The path draws with the scroll, the rider leads it | follows the scroll, no time easing |
| Milestone reached | Its node fills with the accent; its card goes from 42% to full | 180ms colour, ease out; card over 8% of the path |
| Counter | Ticks to the reached release's value | 280ms, TickNumber |
| Phone | A list; the rail fills as the list scrolls past | follows the scroll |
| Reduced motion | The list with the rail drawn and every card at full strength | 0ms |
Works with
When to use
When to use
- A landing section that tells what shipped this year as one road, with a counter of the teams or requests it brought.
- A changelog or roadmap home where the order of releases is the story.
When not to use
- The full changelog with filters and details: use Changelog Feed.
- A dense release history people read entry by entry: use Changelog Timeline.
Using with AI
Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:
- Add the Knowns UI Release Path to my app and wire it to my own data.
- I need a landing section that tells what shipped this year as one road, with a counter of the teams or requests it brought. Set that up with the Knowns UI Release Path.
- Which Release Path props do I need for a minimal setup? Show me a short example.
With the server connected, your assistant calls get_component({ name: "release-path" }) and search_docs({ query: "release path" }).