# Application App Shell: Collapsible Sidebar Shell

Icon-only nav rail with an expand affordance, badge count on Projects, and an inline tooltip hint on one item.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/collapsible-sidebar-shell
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [App Shells](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells)
- Created: 2026-06-15
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/collapsible-sidebar-shell.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-app-shells-collapsible-sidebar-shell
```

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: avatars, badge, button
- Installs to: `@/components/blocks/application-pro/app-shells/collapsible-sidebar-shell`

## About this block

Collapsible Sidebar Shell renders the nav rail in its
narrow icon-only state: a 16-wide aside, five icon
buttons with the active highlight on Overview, a badge
count floating on the Projects icon showing 12, and an
expand affordance in the header via PanelLeftOpen. The
Projects item carries an inline tooltip label rendered
as static markup so the hint appears without opening a
Radix portal. Content shows the Projects page header,
Friday June 13, 12 active projects across 3 teams, with
a New project button and two dashed slot panels.

Nav is one const array with active and badge fields. The
inline tooltip at HINT_INDEX is the discovery signal that
tells keyboard users labels are one expand away.

## When to use

Reach for this shell when vertical space is the first
constraint and icon recognition is high enough to
navigate without labels. It pairs naturally with the
full sidebar shell so users can toggle between the two
states; wire the expand button to swap the shell or
unhide the label column.

A natural flow around it on an Application Pro page:

**Before**

- Nothing, shells are the page

**After**

- [Kpi cards row](https://www.shadcn-ui-blocks.com/blocks/application-pro/stat-cards)
- [Data table](https://www.shadcn-ui-blocks.com/blocks/application-pro/data-tables)

## What you can display

One strong use is the dense workspace frame for power
users. Other collapsed-rail contexts:

- **Dev tools.** Source, blame, history, and run icons
  where the icon set is well-known.
- **Settings pages.** Category icons on the rail, the
  selected category expands inline.
- **Mobile-first products.** Rail always collapsed on
  desktop, bottom bar on mobile.

> Tip: show the inline label hint on the one item most
> likely to be new to a user, not on every item.

## More in Application App Shells

- [Anchor Nav Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/anchor-nav-shell)
- [Bottom Panel Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/bottom-panel-shell)
- [Breadcrumb Header Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/breadcrumb-header-shell)
- [Card Grid Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/card-grid-shell)
- [Centered Content Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/centered-content-shell)
- [Checklist Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/checklist-shell)
- [Command Bar Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/command-bar-shell)
- [Dashboard Home Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/dashboard-home-shell)
- [Document Tabs Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/document-tabs-shell)
- [Dual Sidebar Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/dual-sidebar-shell)
- [Empty State Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/empty-state-shell)
- [Environment Banner Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/env-banner-shell)
- [Focus Mode Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/focus-mode-shell)
- [Full Bleed Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/full-bleed-shell)
- [Icon Sidebar Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/icon-sidebar-shell)
- [Inbox Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/inbox-shell)
- [Nested Nav Sidebar Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/nested-nav-sidebar-shell)
- [Right Rail Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/right-rail-shell)
- [Settings Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/settings-shell)
- [Sidebar Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/sidebar-shell)
- [Split Content Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/split-content-shell)
- [Sticky Toolbar Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/sticky-toolbar-shell)
- [Tabbed Page Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/tabbed-page-shell)
- [Topbar Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/topbar-shell)
- [Two Pane Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/two-pane-shell)
- [Wizard Shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells/wizard-shell)
