Component packs › Mono › File Tree

File Tree

Folders fold open and shut, one selection band slides between rows, and a newly added file slides into its folder with an A mark.

File Tree is a tree view from Mono, a component pack with 6 code components: Code UI where changes move: diffs slide lines in and out, and the terminal runs its script. Price: $2 for the whole pack.

Built with: sliding selection, folding folders, git marks, tree keyboard.

Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.

File Tree props

PropTypeDefaultDescription
treeTreeNode[]
labelstring
darkboolean
onSelect(path: string) => void
autoplaynumber | falseShowcase mode: opens folders, selects files and adds a new file, one step every N ms.

Methods on the ref

Use it in React

import FileTree from './FileTree';

<FileTree />

The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.

More in Mono

Good for: Code blocks.