# Glass Tab Bar

Glass Tab Bar 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

Frosted glass pill tab bar with a sliding active indicator. Edge tabs snap flush to the container wall.

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

## Install

```bash
npx shadcn@latest add @aicanvas/glass-tab-bar
```

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

```tsx
import GlassTabBar from '@/components/aicanvas/glass-tab-bar'

<GlassTabBar />
```

It takes no props.

## About

Glass Tab Bar is a frosted pill row with a sliding active indicator that crosses behind the labels as you switch sections. The edge tabs are intentionally snapped flush to the container wall so the rhythm feels intentional rather than centered-with-padding. Motion drives the slider, and the glass surface adapts to whatever sits behind it through backdrop-filter. It works well as a settings switcher, a dashboard segment control, or a mobile-style tab row inside a larger page.

Use cases: Dashboard, Settings, Mobile app.

## Source

Install with the command above to get the source.

## Remix prompt

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

## Related

- [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 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.
- [Expanding Tabs](https://aicanvas.me/components/expanding-tabs.md): A monochrome tab bar of icon circles. Click one and it expands into a labeled pill.
