Measured entry

tripled-animated-tabs-shadcnui

tabsminimal-flatmotion on file

A client-side tab panel shipped as a shadcn registry component. It composes the project tabs primitive with React state and Framer Motion for a spring-driven active indicator and content transitions, while relying on Tailwind utilities, the shadcn import alias, and a card background theme token.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of tripled-animated-tabs-shadcnui at 375 pixels wide
Harness screenshot at 375 pixels wide. This viewport scrolled sideways.
Harness screenshot of tripled-animated-tabs-shadcnui at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of tripled-animated-tabs-shadcnui at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

Measured

Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.

Harness measurements recorded for tripled-animated-tabs-shadcnui
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowflagged at 375
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal76.9 KB (142.3 KB build, 65.4 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten from the component source API

What the harness recorded

BARE BUILD

✗ Build failed in 58.02s
error during build:
[vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/components/ui/tabs.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'

Verdict

A tidy animated tab treatment with a clean verified render, but it needs a shadcn-style setup and is not drop-in for a bare React app. Use it when its fixed geometry matches the layout; otherwise expect responsive and indicator-sizing work.

Use it if

  • Your app already uses shadcn tabs and you want a compact animated settings switcher.
  • The tab labels and panel can live in a fixed-width desktop or tablet layout.
  • You are comfortable tuning the motion and theme token to match your design system.

Skip it if

  • The component must fit narrow screens without responsive changes, since the supplied layout overflows there.
  • Your tabs have dynamic labels or counts, because the indicator position and width are hard-coded.
  • You want to avoid Framer Motion's added client bundle cost for a small interaction.
  • Your project does not use Tailwind or shadcn-style aliases and you do not want to recreate that plumbing.

Install

Installation record for tripled-animated-tabs-shadcnui
Declared dependenciesframer-motion, react, radix-ui
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno provider required in the harness

In a non-shadcn project, add React and Framer Motion, a Radix-backed tabs primitive, the shadcn utility helper at the expected import alias, Tailwind styling, and the card background theme token. Configure the alias or rewrite the imports, then make the container and indicator sizing responsive.

Source and credit

This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.

Alternatives

Other published entries for the tabs pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.