Component packs › Mono › 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.
| Prop | Type | Default | Description |
|---|---|---|---|
tree | TreeNode[] | ||
label | string | ||
dark | boolean | ||
onSelect | (path: string) => void | ||
autoplay | number | false | Showcase mode: opens folders, selects files and adds a new file, one step every N ms. |
select(path: string): voidadd(folderPath: string, node: TreeNode): voiddestroy(): voidimport FileTree from './FileTree';
<FileTree />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Code blocks.