Combobox
Chart Of Accounts
Picking an account from a chart of accounts: the code assembles segment by segment, unfilled parts show as dots, and a posting cannot be attached to an account group.
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
- label — the heading above the code
- accounts — the chart itself as a tree with codes, names and an archived flag
- defaultPath — the path expanded at first render
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/cascader-014?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
<Cascader014 label="Ledger account" defaultPath={["51", "01"]} />A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.
Settings
- Heading
label· default: Ledger account- Accent
accent· default: theme colour- Background
background· default: theme colour
More in Combobox
FAQ
- How do I add Chart Of Accounts 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 Chart Of Accounts depend on?
- No npm packages beyond React and Tailwind CSS.
- What can I change in Chart Of Accounts?
- Adapt: label — the heading above the code; accounts — the chart itself as a tree with codes, names and an archived flag; defaultPath — the path expanded at first render. Keep as installed: the local --vibeui-cascader-014-* palette — do not swap it for your theme tokens (bg-muted, text-muted-foreground and the like); the assembled code at the top with dots for empty segments: accountants recognise an account by its code, not its name; the monospace font for codes — otherwise 51.01.02 and 51.1.2 look alike.
- Is Chart Of Accounts 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/cascader-014.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, its own palette in the local --vibeui-cascader-014-* variables. Client-side: the path through the tree and the chosen code live in useState. The tree is described by a recursive type with the fields code, name, children and archived; the current level is computed by walking path on every render, so there is no separate «current nodes» state and nothing can fall out of sync. At the top sits the assembled code in a monospace font: unfilled segments are shown as dots through <i>, so the shape of the code is visible in advance. The breadcrumbs are buttons that return the path to the required depth. Nodes with children open the next level, leaves are selectable and marked with aria-current, and archived accounts get a native disabled.
Tags
- cascader
- accounting
- codes
- tree
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…