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.
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.ru/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…
For developers
The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.
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…