# Application Navigation: Sidebar Nav Tree

An expanded workspace sidebar with flat items, a Projects group opened to indented children along a guide line, and two collapsed groups with counts.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/sidebar-nav-tree
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [Navigation](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation)
- Created: 2026-07-04
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/sidebar-nav-tree.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-navigation-sidebar-nav-tree
```

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: lucide-react
- Installs to: `@/components/blocks/application-pro/navigation/sidebar-nav-tree`

## About this block

Sidebar Nav Tree is a full app shell built around a
64-wide expanded sidebar. A Northwind workspace header
with a switcher chevron sits on top, then flat primary
items (Home, Inbox with a 12 badge, My issues), then a
Projects group opened to show its children indented
along a left guide line: Apollo web active, Atlas API
with a 3 badge, Billing revamp, and Mobile app, closed
by a New project link. Two collapsed groups, Teams and
Resources, carry counts and a right chevron below. A
sidebar foot holds an Invite teammates link, and the
content area renders the active Apollo web project with
Current sprint and Recent activity cards.

Primary items, tree children, and collapsed groups are
three typed arrays so active and badge fields share one
shape. The open group sets aria-expanded true and the
collapsed ones set it false; active links carry
aria-current. The indentation guide is a real border-l
on the children container, not padding.

## When to use

Reach for this block as the primary sidebar of an issue
tracker or project tool where work nests under a group
and users expand the tree to reach a specific item.
Wire the tree arrays to your workspace data and set
aria-current on the active child via your router.

A natural flow around it on an Application Pro page:

**Before**

- Nothing, the shell is the outermost page element

**After**

- [Kanban board](https://www.shadcn-ui-blocks.com/blocks/application-pro/kanban-boards)
- [Kpi cards row](https://www.shadcn-ui-blocks.com/blocks/application-pro/stat-cards)

## What you can display

One strong use is the project tree sidebar. Other
configurations:

- **Docs workspace.** The Projects group becomes a
  spaces list with nested collections.
- **All groups collapsed.** Ship the tree closed by
  default for deep hierarchies.
- **Views on top.** Primary items become saved views
  above the project tree.

> Tip: the indented children hang off a real border-l
> guide line, so the nesting reads at a glance without
> any extra indentation math.

## More in Application Navigation

- [App Switcher Grid](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/app-switcher-grid)
- [Breadcrumb Dropdown Blueprint](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/breadcrumb-dropdown-blueprint)
- [Breadcrumbs With Actions](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/breadcrumbs-with-actions)
- [Command Palette Open](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/command-palette-open)
- [Context Menu Blueprint](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/context-menu-blueprint)
- [Global Search Results](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/global-search-results)
- [Help Menu Blueprint](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/help-menu-blueprint)
- [Jump To Blueprint](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/jump-to-blueprint)
- [Mega Menu Blueprint](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/mega-menu-blueprint)
- [Page Outline Rail](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/page-outline-rail)
- [Pagination Bar](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/pagination-bar)
- [Pinned Items Rail](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/pinned-items-rail)
- [Recent History Menu Blueprint](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/recent-history-menu-blueprint)
- [Record Pager Header](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/record-pager-header)
- [Secondary Settings Nav](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/secondary-settings-nav)
- [Section Switcher](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/section-switcher)
- [Sidebar Footer Menu Open](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/sidebar-footer-menu-open)
- [Sidebar Search Results](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/sidebar-search-results)
- [Tab Bar Mobile](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/tab-bar-mobile)
- [Tab Navigation Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/tab-navigation-panel)
- [Topbar With Command Hint](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/topbar-with-command-hint)
- [Workspace Switcher Open](https://www.shadcn-ui-blocks.com/blocks/application-pro/navigation/workspace-switcher-open)
