# Expanding Tabs

Expanding Tabs 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

A monochrome tab bar of icon circles. Click one and it expands into a labeled pill.

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

## Install

```bash
npx shadcn@latest add @aicanvas/expanding-tabs
```

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

```tsx
import ExpandingTabs from '@/components/aicanvas/expanding-tabs'

<ExpandingTabs />
```

It takes no props.

## About

Expanding Tabs is a monochrome tab bar where switching sections is one continuous shape change: the active tab expands into a full icon-and-label pill while the previous tab collapses back into a plain icon-only circle. Every icon sits at a fixed left inset so it never needs its own layout animation, which keeps the morph smooth no matter how fast you click between tabs. A soft drop-shadow elevation plus a crisp inset top-highlight on both the pill and the outer rail give the bar a tactile, skeuomorphic finish in light and dark mode alike. It fits a mail client, a dashboard section switcher, or any compact settings tab strip.

Use cases: Mail client, Dashboard, Settings.

## Source

Install with the command above to get the source.

## Remix prompt

Only when the user wants Expanding Tabs rebuilt from scratch instead of installed: its remix prompt is in the Remix panel at https://aicanvas.me/components/expanding-tabs.

## 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 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 Navbar](https://aicanvas.me/components/glass-navbar.md): Frosted glass navigation bar with animated active tab indicator, ambient color blobs, and spring-physics entrance.
