# Glass Sidebar

Glass Sidebar is a free, MIT-licensed standalone component from AI Canvas (https://aicanvas.me): it belongs to no design system and works in any React + Tailwind app. Index of every component and install setup: https://aicanvas.me/llms.txt

Collapsible glassmorphism sidebar with icon-only and full label states, spring-animated expand and collapse.

- Category: Navigation
- Built with: Motion, Tailwind CSS
- License: MIT
- Page: https://aicanvas.me/components/glass-sidebar

## Install

```bash
npx shadcn@latest add @aicanvas/glass-sidebar
```

Needs a free AI Canvas account. Signed out, the command exits 0 but writes a placeholder (an `AccountRequired` notice); check for it before reporting success. Token setup: the Install section of https://aicanvas.me/llms.txt.

AI agents can also get its install command from the read-only AI Canvas MCP server (`npx -y @aicanvas/mcp`) and run it. Setup: https://aicanvas.me/mcp

Peer dependencies:

```bash
npm install framer-motion
```

## Use it

It installs to `components/aicanvas/glass-sidebar.tsx` (under `src/` if your project has one). With the usual `@/` alias:

```tsx
import GlassSidebar from '@/components/aicanvas/glass-sidebar'

<GlassSidebar />
```

It takes no props.

## About

Glass Sidebar is a collapsible glassmorphism rail that animates between an icon-only and a fully-labeled state with a single spring-driven transition. Each row stays touch-friendly in both modes, and the labels fade in with a slight stagger so the expansion feels intentional. The glass surface uses backdrop-filter, so it always picks up the background color of the app beneath. It is the default left rail for SaaS dashboards, admin panels, and any web app where you want a clean primary navigation that gets out of the way on demand.

Use cases: Dashboard, Admin panel, SaaS.

## Source

Install with the command above to get the source.

## Remix prompt

Only when the user wants Glass Sidebar rebuilt from scratch instead of installed: its remix prompt is in the Remix panel at https://aicanvas.me/components/glass-sidebar.

## Related

- [Glass User Menu](https://aicanvas.me/components/glass-user-menu.md): Frosted glass user avatar trigger with animated dropdown, grouped menu items, and Log Out.
- [Glass Navbar](https://aicanvas.me/components/glass-navbar.md): Frosted glass navigation bar with animated active tab indicator, ambient color blobs, and spring-physics entrance.
- [Glass Tab Bar](https://aicanvas.me/components/glass-tab-bar.md): Frosted glass pill tab bar with a sliding active indicator. Edge tabs snap flush to the container wall.
- [Glass Dock](https://aicanvas.me/components/glass-dock.md): Glassmorphism macOS-style dock with cursor-proximity magnification. Icons scale with spring physics as the mouse approaches.
- [Glass Toast](https://aicanvas.me/components/glass-toast.md): Frosted glassmorphism toast notification stack with 4 variants, auto-dismiss progress bar, and spring-animated stacking.
