Acting tab bar (Pro)
ProIncluded in $99A tab bar where each icon acts out what it means.
On this page
ProPick a tab and its icon acts: the house door swings open, the lens sweeps and glints, a letter drops into the tray, the face blinks and smiles.
Pick a tab and its icon acts it out: the house hops and its door swings open on a warm room, the lens sweeps across the page and glints, a letter drops into the inbox tray and sinks into the slot, and the face looks round, blinks and smiles. The dark pill stretches to the new tab leading edge first, and the icons inside it are a second, inverted copy clipped to the pill, so they change colour exactly where it passes. For the bottom bar of a mobile AI app.
Installation
Needs chatcn Pro
This command works with a Pro license, along with every Pro component.
Or start free: sign up and get three Pro components on us, with a new one every month.
Usage
import { ActingTabBar } from "@/components/ui/chatcn/pro/acting-tab-bar"
<ActingTabBar value={tab} onValueChange={setTab} inboxBadge={unread > 0} />Props
| Prop | Type | Notes |
|---|---|---|
value / defaultValue / onValueChange | "home" | "search" | "inbox" | "profile" | |
labels | Record<tab, string> | Accessible names |
inboxBadge | boolean | A red dot on the inbox |
Keyboard
| Key | Action |
|---|---|
Arrow keys | Previous or next tab |
Accessibility
- A labelled nav with a real tablist; the inbox name says when it has something new.
Motion
- Each act runs about a second on keyframes; the pill rides a two edge spring. Reduced motion: no acts, the pill jumps.