Checkbox
Permission Tree
A checkbox tree with inheritance: a branch toggles all of its leaves at once, and its own state is computed back from them.
What you can change
- the nodes array — a tree of any depth
- title — the block heading
- the initial defaultValue built from leaf identifiers
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/checkbox-021?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
The component is self-contained: one file, no dependencies, its own palette in the local --vibeui-checkbox-021-* variables. A client component: "use client". State is kept for the leaves only; a branch computes its own from the list of its descendants, so the tree works at any depth. indeterminate is set through an effect in every row. The branches sit in <details> with a hidden marker, and a click on the tick inside <summary> stops propagation, otherwise it would collapse the branch. The theme comes from the surrounding color-scheme through light-dark(): by default the component lays no panel under itself, sits directly on the page background and darkens along with it; the background prop brings the panel back.
Tags
- checkbox
- tree
- permissions
- indeterminate
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…