Measured entry
hextaui-tree
A client-side React tree for collapsible, selectable hierarchies, shipped as copy-in source through a shadcn registry. It provides provider, tree, and item primitives with optional lines, icons, multiselect, and expansion animation, and relies on Tailwind theme classes, Radix Slot, class-variance-authority, Lucide icons, and a local cn utility.



Measured
Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.
| Build | OK |
|---|---|
| Mount | OK |
| Console errors | 0 |
| Uncaught page errors | 0 |
| Horizontal overflow | flagged at 375 |
| Axe critical | 1 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 33.5 KB (99.0 KB build, 65.5 KB baseline) |
| Bare mode | FAIL |
| Provider required | NO |
| Demo used | written from the component source API |
What the harness recorded
BARE BUILD
✗ Build failed in 672ms error during build: [vite]: Rollup failed to resolve import "class-variance-authority" from "<sandbox>re-06bd1f6c640f/src/cut/components/ui/tree.tsx".
Verdict
A useful starting point for shadcn-based file trees, with practical state hooks and editable source. It needs a shadcn-style setup, and teams should fix the ARIA tree structure and narrow-layout overflow before treating it as production-ready.
Use it if
- You need a compact file browser or nested navigation whose expansion and selection state can be controlled.
- Your app already uses shadcn conventions, Tailwind theme tokens, and a shared cn utility.
- You want copy-owned source that can be adapted for custom icons, click data, or multiselect behavior.
Skip it if
- You need an accessible tree without modification, because the rendered tree items lack the required ARIA tree parent.
- Your layout must fit narrow screens as supplied, because the tested example overflows there.
- You want a dependency-light standalone package rather than source coupled to shadcn and Tailwind conventions.
- You need complete keyboard tree navigation such as arrow-key movement, which this implementation does not provide.
Install
| Declared dependencies | @radix-ui/react-slot, clsx, tailwind-merge |
|---|---|
| Missing on install | none |
| Bare install | fails once the shadcn-style helpers are removed, so it needs that setup |
| Provider | no provider required in the harness |
In a non-shadcn project, add Radix Slot, class-variance-authority, Lucide React, clsx, and tailwind-merge; provide the cn helper and Tailwind theme tokens used by the classes, including color, ring, border, and radius aliases. Also replace the path alias or configure it in the bundler.
Source and credit
This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.
Author repository
github.com/preetsuthar17/HextaUIAlternatives
Other published entries for the accordion pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.
- neobrutalism-collapsiblebrutalism
- Renders
- YES
- A11y
- 0
- Gzip
- 22.1KB
- Bare
- pass
- Prov
- NO
- shadcn-collapsibleunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 22.1KB
- Bare
- pass
- Prov
- NO
- 8bitcn-collapsibleskeuomorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 34.3KB
- Bare
- pass
- Prov
- NO
- hextaui-collapsibleminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 34.3KB
- Bare
- pass
- Prov
- NO
- hextaui-ai-citationsminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 35.6KB
- Bare
- fail
- Prov
- NO
- neobrutalism-accordionbrutalism
- Renders
- YES
- A11y
- 0
- Gzip
- 35.7KB
- Bare
- fail
- Prov
- NO