# Application File Manager: Folder Tree Nav

Recursive folder tree sidebar with expand chevrons, item counts, one active node, and Trash and Shared rows.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/folder-tree-nav
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [File Manager](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager)
- Created: 2026-06-15
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/folder-tree-nav.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-file-manager-folder-tree-nav
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: badge
- Installs to: `@/components/blocks/application-pro/file-manager/folder-tree-nav`

## About this block

Folder Tree Nav is the sidebar navigation panel for a
file manager, a recursive tree rooted at Acme (312
items) with the Design branch expanded to show Q1
Assets (34), Q2 Assets (41, active), and Brand Kit
(12), then Engineering (95) and Marketing (130) as
collapsed siblings. Expand chevrons flip to a down
arrow on open nodes, the folder icon switches to
FolderOpen, and the active row gets an accent
background. Below a divider, three special rows handle
Shared with me (18), Shared by me (6), and Trash (43).

The tree is one recursive FolderNode array rendered by
a FolderRow component. Depth-based paddingLeft creates
the indent rail without a CSS tree library. Static
expanded state means no JS needed for the preview.

## When to use

Reach for this block as the left column of a file
manager layout, wired to your directory tree API and a
router that sets the active node by path. Add
onClick handlers when the static blueprint goes live.

A natural flow around it on an Application Pro page:

**Before**

- [App shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells)

**After**

- [File browser table](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager)
- [File grid gallery](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager)

## What you can display

One strong use is the file manager sidebar. Other tree
nav shapes:

- **Project tree.** Rename the root to a project name
  and replace file counts with open task counts.
- **Settings nav.** A flat two-level tree where top
  nodes are categories and children are individual
  settings pages.
- **Category browser.** An e-commerce or docs taxonomy
  rendered with the same expand and active patterns.

> Tip: item counts per folder earn their column, they
> let users know whether a folder is worth opening
> before they click.

## More in Application File Manager

- [File Activity Feed](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/file-activity-feed)
- [File Browser Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/file-browser-table)
- [File Conflict Resolver](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/file-conflict-resolver)
- [File Detail Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/file-detail-panel)
- [File Grid Gallery](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/file-grid-gallery)
- [File Request Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/file-request-panel)
- [File Search Results](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/file-search-results)
- [File Version History](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/file-version-history)
- [Recent Files List](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/recent-files-list)
- [Share Permissions Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/share-permissions-panel)
- [Shared Links Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/shared-links-table)
- [Shared With Me Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/shared-with-me-table)
- [Storage Cleanup Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/storage-cleanup-panel)
- [Storage Usage Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/storage-usage-card)
- [Sync Status Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/sync-status-panel)
- [Trash Bin Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/trash-bin-table)
- [Upload Dropzone Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/file-manager/upload-dropzone-card)
