# Glass Dock

Glass Dock 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

Glassmorphism macOS-style dock with cursor-proximity magnification. Icons scale with spring physics as the mouse approaches.

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

## Install

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

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-dock.tsx` (under `src/` if your project has one). With the usual `@/` alias:

```tsx
import GlassDock from '@/components/aicanvas/glass-dock'

<GlassDock />
```

It takes no props.

## About

Glass Dock is a macOS-inspired dock bar where each icon scales up as your cursor approaches, with spring physics that propagate gently to the neighbouring icons. The glassmorphism backdrop, blur, and edge highlight all use native backdrop-filter so the dock picks up the page behind it. Motion handles the proximity-based scaling without re-rendering each icon, which keeps things smooth even with a dozen entries. Use it as the navigation rail for an editor, dashboard, or web-app shell that wants a tactile, desktop-class feel.

Use cases: Dashboard, Editor, Mobile app.

## Source

Install with the command above to get the source.

## Remix prompt

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

## Related

- [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 Sidebar](https://aicanvas.me/components/glass-sidebar.md): Collapsible glassmorphism sidebar with icon-only and full label states, spring-animated expand and collapse.
- [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 Toast](https://aicanvas.me/components/glass-toast.md): Frosted glassmorphism toast notification stack with 4 variants, auto-dismiss progress bar, and spring-animated stacking.
