Skip to content
Pebble Pro is here at $49 one timeSee what’s included ↗
Pebble
ComponentsDocsMCPPricing
⌕ Find a component↗Log in
All components 673

Categories

Core inputs & forms46Buttons & actions33Navigation36Overlays & feedback49Data display33Charts & data viz40Cards & layout43Marketing blocks38App shells & pages37AI interfaces40Text & typography effects33Backgrounds & visual effects38Motion & transitions32Numbers & counters32Media34E-commerce333D & interactive36Themed sets40
Start with the essentials.Installation guide ↗Connect your agent ↗
← All componentsThemed sets

CLI Tree

Terminal-style directory tree output with box guides, human file sizes, colours by file type, collapsible folders, a tree -L header and a summary line.

Preview

~/ledger $ tree -L 2 -h

ledger

├── [ 11K] app/, folder, 11KB
│ ├── [ 4.5K] invoices/, folder, 4.5KB … 2 entries
│ ├── [ 4.2K] globals.css, 4.2KB
│ ├── [ 1.2K] layout.tsx, 1.2KB
│ └── [ 812] page.tsx, 812B
├── [ 8.3K] components/, folder, 8.3KB
│ ├── [ 6.0K] invoice-table.tsx, 6.0KB
│ ├── [ 930] money.ts, 930B
│ └── [ 1.4K] status-badge.tsx, 1.4KB
├── [ 295K] public/, folder, 295KB
│ ├── [ 15K] favicon.ico, 15KB
│ ├── [ 2.2K] mark.svg, 2.2KB
│ └── [ 278K] receipt-hero.png, 278KB
├── [ 5.0K] scripts/, folder, 5.0KB
│ ├── [ 1.8K] deploy.sh*, 1.8KB
│ └── [ 3.2K] seed.ts, 3.2KB
├── [ 23] .env, 23B -> .env.local
├── [ 1.3K] package.json, 1.3KB
├── [ 2.5K] README.md, 2.5KB
└── [ 640] tsconfig.json, 640B

5 directories, 15 files · 323K total

dir/codeconfigmediadocsexec*link

~/ledger $

Install

Pro source requires Pebble Pro. Try the full preview above.

Props

PropTypeDefaultDescription
treeCliTreeNode[]—{ name, size?, children?, link?, executable? }; folders have children.
rootstring"."Root shown on the first line.
cwdstring"~/project"Prompt path before the command.
levelnumber2Folders deeper than this start collapsed, like tree -L.
sizesbooleantrueShow [ 4.2K] size columns, like tree -h.
commandstring"tree -L <level> -h"Override the echoed command.
legendbooleantrueShow a key of file colours under the summary.
onSelect(path: string) => void—Called when a file is opened (click or Enter).
labelstring"Directory tree"Accessible name of the tree.

Pro component

Try the full preview above. Editable source and build guides require Pebble Pro.

Buy Pebble Pro — $49How source access works ↗
Pebble

Small details.
Better interfaces.

React components to explore, make your own, and build on.

Library

  • Components
  • Installation
  • Pricing

Resources

  • For agents
  • About
  • Support

Legal

  • License
  • Terms
  • Privacy
  • Final sale

Built by Pebble

A product of Praxys Solutions LLC ↗

Pebble Pro is live

$49 one time, lifetime updates ↗