Stepper
Doc Revisions
A document revision history: author, comment and a two-colour bar whose parts are proportional to the added and removed lines.
React + Tailwind, shadcn-compatible: press “Copy for AI” and your Cursor or Claude Code agent installs it with the shadcn CLI.
What you can change
- the heading through title
- the revisions through revisions: version, author, comment, time and the added/removed counts
- the accent colour through accent
A link for your AI agent: preview, code and instructions.
Preview

Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.club/c/timeline-005?lang=en&theme=dark
Not sure where to paste it? Step-by-step guide
Show the full instructions
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
Loading…
How to use
<Timeline005
title="Document history"
revisions={[
{ version: "v12", author: "Mark Ivanov", note: "Pricing section rewritten", time: "today, 14:20", added: 64, removed: 12, current: true },
{ version: "v11", author: "Anna Petrova", note: "Edits after review", time: "yesterday, 18:05", added: 18, removed: 44 },
]}
/>A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.
Settings
- Heading
title· default: Document history- Accent
accent· default: theme colour- Version tag
currentLabel· default: current- Surface
background· default: theme colour
More in Stepper
FAQ
- How do I add Doc Revisions with Cursor or Claude Code?
- Press “Copy for AI” on this page and paste it into your agent's chat. The instruction contains the shadcn CLI install command, the dependencies and what to keep, so the agent installs this exact component instead of recreating a lookalike.
- What does Doc Revisions depend on?
- No npm packages beyond React and Tailwind CSS.
- What can I change in Doc Revisions?
- Adapt: the heading through title; the revisions through revisions: version, author, comment, time and the added/removed counts; the accent colour through accent. Keep as installed: the local --vibeui-timeline-005-* palette — do not swap it for your theme tokens; the +N and −N numbers beside the bar: an unlabelled bar is decoration, not data; the added share in --vibeui-timeline-005-share: the width is computed at render, not on the client.
- Is Doc Revisions free?
- Yes. The preview is open without an account; with a free account you can copy up to 20 components a month.
For developers
npx shadcn@latest add https://vibeui.club/r/pro/timeline-005.jsonThis command needs a signed link: sign in and open “Component source” below — it issues a working link valid for 30 minutes. All install options
Technical notes
The component is self-contained: one file, zero dependencies, the palette in the local --vibeui-timeline-005-* variables. Server component: no hooks. The added share is computed at render and passed to CSS in the single --vibeui-timeline-005-share variable, which sets the width of the green part of the bar; the red part takes the remainder through flex: 1. The +N and −N numbers stand beside it as text: a bar without a label is decoration, not data. The version number is laid out as a separate chip in the grid's first column, and the current version is marked by the border colour and the word "current". The theme comes from the surrounding color-scheme through light-dark(): the block has no surface by default, it sits on the page background and darkens along with it.
Tags
- timeline
- history
- diff
- versions
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…