Loading preview
Dock
NavigationA row of icons that magnify as the mouse approaches, like the macOS dock.
Tabs with a sliding underline and fading panels, following the WAI-ARIA tabs pattern.
npx shadcn@latest add @venusui/animated-tabsRun this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.
Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.
@/components/ui/animated-tabs.tsxThe code behind the preview above.
animated-tabs-demo.tsx
import { AnimatedTabs } from "@/components/ui/animated-tabs"
export default function AnimatedTabsDemo() {
return (
<AnimatedTabs
label="Account"
className="max-w-md"
tabs={[
{ value: "overview", label: "Overview", content: <p className="text-sm text-muted-foreground">Usage, plan and recent activity at a glance.</p> },
{ value: "billing", label: "Billing", content: <p className="text-sm text-muted-foreground">Invoices, payment methods and tax details.</p> },
{ value: "team", label: "Team", content: <p className="text-sm text-muted-foreground">Invite people and manage roles.</p> },
]}
/>
)
}
| Prop | Type | Default | Description |
|---|---|---|---|
| tabs | { value: string; label: ReactNode; content: ReactNode }[] | — | Tabs and their panels. Required. |
| label | string | — | Accessible name for the tab list. Required. |
| defaultValue | string | first tab | Initially selected tab. |
| onValueChange | (value: string) => void | — | Called when the selection changes. |
| className | string | — | Classes for the wrapper. |
Only the props above.
motion package. The CLI installs it.label alongside text.inset-0 rounded-md bg-muted.layoutId.Unknown registry "@venusui"npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.No components.json foundnpx shadcn@latest init in your project first.A row of icons that magnify as the mouse approaches, like the macOS dock.
A single-choice switcher with a highlight that slides to the selected option.
A CSS-only cube with six content faces that tumbles slowly and pauses on hover.