Measured entry

magicui-file-tree

sidebarbento

A client-side React file tree that supports nested folders, selection, expansion, sorting, custom icons, and right-to-left layouts. It ships as shadcn registry source and relies on Radix Accordion, Lucide icons, Tailwind styling, a class-name helper, plus local Button and ScrollArea components.

Specimen
Harness screenshot of magicui-file-tree at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of magicui-file-tree at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of magicui-file-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 magicui-file-tree
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal45.4 KB (110.9 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 845ms
error during build:
[vite]: Rollup failed to resolve import "lucide-react" from "<sandbox>re-5d0db27854ff/src/cut/file-tree.tsx".

Verdict

A capable display and navigation tree for apps already following shadcn conventions. It builds and mounts cleanly in that environment, but it needs a shadcn-style setup; the bare project fails because the source assumes Lucide icons and local UI modules.

Use it if

  • You need an expandable directory outline for documentation, project previews, or a compact navigation panel.
  • Your app already uses shadcn conventions and can supply the expected utility, button, and scroll-area modules.
  • You want either declarative file data or manually composed folder and file nodes, with built-in sorting and selection styling.

Skip it if

  • You need a virtualized tree for very large or frequently changing directory data.
  • You need file operations such as renaming, dragging, context menus, or multi-selection without substantial extension work.
  • You require externally controlled selection and expansion state for routing or application-wide synchronization.
  • You want a dependency-light component that can be copied into a plain React project unchanged.

Install

Installation record for magicui-file-tree
Declared dependenciesclsx, tailwind-merge, radix-ui
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 React, Radix Accordion, Lucide React, Tailwind CSS, clsx, and tailwind-merge. Provide the expected class-name helper plus compatible Button and ScrollArea components, and include the accordion animation styles used by the source.

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 sidebar pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.