Measured entry

kokonut-smooth-tab

switchdark-futuristicmotion on file

A client-side React tab switcher that pairs an animated content card with a sliding active-tab highlight. It ships as a shadcn registry component and uses Motion, lucide-react types, Tailwind theme utilities, and the shadcn cn helper.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of kokonut-smooth-tab at 375 pixels wide
Harness screenshot at 375 pixels wide. This viewport scrolled sideways.
Harness screenshot of kokonut-smooth-tab at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of kokonut-smooth-tab 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 kokonut-smooth-tab
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowflagged at 375
Axe critical1
Axe serious1
Axe moderate0
Axe minor0
Gzip marginal70.1 KB (135.5 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 2m 3s
error during build:
[vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/components/kokonutui/smooth-tab.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'

Verdict

Polished motion and a practical callback make it a useful starting point, but it needs a shadcn-style setup and is not release-ready as supplied. Fix the narrow-screen overflow, invalid ARIA, contrast, and rigid tab layout first.

Use it if

  • You need a compact tab bar with animated panel transitions and a moving selection highlight.
  • Your app already uses shadcn conventions, Tailwind theme tokens, and Motion.
  • You can adapt the supplied items and repair the tab semantics before release.

Skip it if

  • The control must fit narrow mobile screens without responsive customization.
  • You need accessible tabs immediately, since the current markup has invalid ARIA and a contrast failure.
  • Your tab count varies, because the toolbar layout is fixed to four columns.
  • You want a lightweight switch without adding an animation dependency.

Install

Installation record for kokonut-smooth-tab
Declared dependenciesmotion, lucide-react
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 Motion and lucide-react, configure the at-sign source alias, provide the cn utility at the expected lib path, and define the Tailwind card, background, foreground, muted, border, and focus-ring theme classes. Keep it as a client component.

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 switch pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.