Animated Tabs

Tabs on Radix with an underline or pill indicator that slides to the active tab; keyboard and screen-reader ready.

Installation

pnpm dlx shadcn@latest add @ward/animated-tabs

Add the Ward registry to components.json once:

"registries": {
  "@ward": "https://ward.so/r/{name}.json"
}

Or install from the URL with no configuration: npx shadcn@latest add https://ward.so/r/animated-tabs.json

Usage

import AnimatedTabs from "@/components/ward/AnimatedTabs";
<AnimatedTabs variant="Pill" />

Props

PropTypeDefaultDescription
variant"Underline" | "Pill""Underline"Style of the indicator that slides to the active tab.

How to build

Switch between related views without losing keyboard or small-screen access.

Use tabs only when panels are peers; a page link is clearer for separate destinations. Keep the active panel in the reading order and let the list scroll on narrow screens.

Install Ward Animated Tabs →

Ward · Version 1.1.0 · Registry manifest