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.



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.
| Build | OK |
|---|---|
| Mount | OK |
| Console errors | 0 |
| Uncaught page errors | 0 |
| Horizontal overflow | flagged at 375 |
| Axe critical | 1 |
| Axe serious | 1 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 70.1 KB (135.5 KB build, 65.4 KB baseline) |
| Bare mode | FAIL |
| Provider required | NO |
| Demo used | written 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
| Declared dependencies | motion, lucide-react |
|---|---|
| Missing on install | none |
| Bare install | fails once the shadcn-style helpers are removed, so it needs that setup |
| Provider | no 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.
Author repository
github.com/kokonut-labs/kokonutuiAlternatives
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.
- neu-toggleneumorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 17.8KB
- Bare
- pass
- Prov
- NO
- clay-toggleclaymorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 18.2KB
- Bare
- pass
- Prov
- NO
- ruixen-scrub-datetimeunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 22.2KB
- Bare
- pass
- Prov
- NO
- shadcn-switchunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 34.4KB
- Bare
- pass
- Prov
- NO
- hextaui-switchminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 34.5KB
- Bare
- pass
- Prov
- NO
- hextaui-tabsminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 39.0KB
- Bare
- pass
- Prov
- NO