@pierre/trees
Modified by Palot contributors for Palot-specific scope and Vite+ installation guidance. See NOTICE.md for the pinned upstream source and LICENSE.md for the Apache-2.0 license.
Use @pierre/trees for an interactive file tree. Public state and callbacks use
path strings.
Install
vp add @pierre/trees
Run the install command from apps/desktop. Install react and react-dom when the app uses the React entry.
Select an API reference
| Entry | Reference |
|---|---|
@pierre/trees |
Core API |
@pierre/trees/react |
React API |
@pierre/trees/ssr |
SSR API |
@pierre/trees/web-components |
Web components API |
Select a recipe
| Task | Recipe |
|---|---|
| Render and update a tree in React | Use React |
| Render and update a tree without React | Use vanilla JavaScript |
| Preload a tree on the server | Use SSR |
| Apply a resolved Shiki or VS Code theme | Apply a theme |
| Configure search, rename, drag and drop, and git status | Add interactions |