Measured entry

hextaui-tree

accordionminimal-flat

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.

Specimen
Harness screenshot of hextaui-tree at 375 pixels wide
Harness screenshot at 375 pixels wide. This viewport scrolled sideways.
Harness screenshot of hextaui-tree at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of hextaui-tree at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

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.

Harness measurements recorded for hextaui-tree
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowflagged at 375
Axe critical1
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal33.5 KB (99.0 KB build, 65.5 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten 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

Installation record for hextaui-tree
Declared dependencies@radix-ui/react-slot, clsx, tailwind-merge
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno 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.

License
MIT
Record published
2026-08-17

Alternatives

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.