Trees
freeA fast, searchable file tree for code browsers, from flat paths, as React or a web component.

Try these
Diffs
Fast code diff and file rendering for React on Shiki: split or unified, virtualised, with annotations.
React Symbols
File and folder icons by type, VS Code style, as React components.
Shaders
Composable GPU effect components for React, Vue and Svelte, stacked as layers in one canvas.
cmdk
Fast, unstyled React command menu with built-in fuzzy filtering.
For your agent
Install
npm i @pierre/treesUse it for
- a file tree sidebar for a code browser or review tool, built from a list of paths
Skip it when
- a generic nested navigation menu: use the kit's Tree or Accordion
What's inside14 free
- FileTree
- useFileTree
- Selector Hooks
- Search
- Selection and Focus
- Rename
- Drag and Drop
- Git Status
- Row Decorations
- Context Menu
- Icons
- Theming
- SSR
- Web Components
Facts
- Frameworks
- react, vanilla
- Styling
- unstyled
- Weight
- small
- Accessibility
- ok
- Maturity
- stable
- License
- Apache-2.0
- Price
- Free
Pairs with
import { FileTree, useFileTree } from "@pierre/trees/react"
const { model } = useFileTree({ paths: ["README.md", "src/index.ts"], initialExpansion: "open", search: true })
<FileTree model={model} style={{ height: 320 }} />https://trees.software
Loading website