Tree
Change Tree
A file tree that shows what changed: a file carries a status mark in both a letter and a colour, and a collapsed folder carries the count of changed files inside it.
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 structure through nodes: name, status, children and open on the nodes
- the status captions through statusText — a screen reader reads the same strings
- the summary line through summaryTemplate with the {changed} and {total} placeholders
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/tree-010?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
<Tree010
nodes={[{ name: "app", open: true, children: [{ name: "page.tsx", status: "modified" }] }]}
/>A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.
Settings
- Tree name
label· default: Changes on this branch- Accent
accent· default: theme colour- Background
background· default: theme colour
More in Tree
FAQ
- How do I add Change Tree 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 Change Tree depend on?
- No npm packages beyond React and Tailwind CSS.
- What can I change in Change Tree?
- Adapt: the structure through nodes: name, status, children and open on the nodes; the status captions through statusText — a screen reader reads the same strings; the summary line through summaryTemplate with the {changed} and {total} placeholders. Keep as installed: the local --vibeui-tree-010-* palette: the component must look the same in any project; the letter alongside the colour: colour alone is indistinguishable under colour blindness; the hidden status expansion for a screen reader — an "M" on its own says nothing.
- Is Change Tree 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/tree-010.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
One file, zero dependencies, the --vibeui-tree-010-* palette. A server component: a native details holds the disclosure, so the tree works before hydration. A file's status is carried two ways at once — a letter in the mark and a colour: colour alone is indistinguishable under colour blindness, and a screen reader only gets text, so a hidden expansion sits next to the letter. The folder count comes from the tally walk over the whole branch rather than the first level, so a collapsed folder honestly says whether there is work inside. A deleted file is struck through as well. File names are set in a monospaced face: in a list of paths that is the only way to line up extensions. The tree is marked up as role=tree with explicit aria-level.
Tags
- tree
- files
- status
- diff
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…