Measured entry

tripled-native-badge-carbon

badgeglassmorphismmotion on file

A client-side React badge distributed as a shadcn registry component, with default, neutral, outline, glass, glow, and animated styles. It uses Tailwind theme tokens and a local cn helper, plus class-variance-authority, Framer Motion, and Lucide React for variants, motion, and the default icon.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of tripled-native-badge-carbon at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of tripled-native-badge-carbon at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of tripled-native-badge-carbon 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-native-badge-carbon
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious1
Axe moderate0
Axe minor0
Gzip marginal72.0 KB (137.5 KB build, 65.5 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten from the component source API

What the harness recorded

BARE BUILD

✗ Build failed in 823ms
error during build:
[vite]: Rollup failed to resolve import "class-variance-authority" from "<sandbox>re-551e4d207a3d/src/cut/components/uitripled/native-badge-carbon.tsx".

Verdict

A flexible, polished badge set for an existing shadcn codebase, especially when the animated treatment is useful. It needs a shadcn-style setup to mount, carries a high dependency cost for its scope, and should not ship until its contrast issues are corrected.

Use it if

  • You need one badge API that covers restrained status labels and more decorative launch or beta labels.
  • Your interface already uses shadcn conventions, Tailwind theme tokens, Framer Motion, and Lucide icons.
  • You want mount motion that respects the user's reduced-motion preference.

Skip it if

  • A small dependency footprint matters, since the motion stack adds substantial weight for a badge.
  • You need accessible colors without further design work, because the tested variants include contrast failures.
  • Your project does not use Tailwind or shadcn-style theme utilities and you do not want to recreate that styling layer.
  • The label must use native badge semantics rather than a styled div.

Install

Installation record for tripled-native-badge-carbon
Declared dependenciesframer-motion, react, clsx, tailwind-merge
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 Tailwind with compatible color and ring tokens, provide the cn utility, and install class-variance-authority, Framer Motion, Lucide React, clsx, and tailwind-merge. Keep it in a client-rendered React boundary and adjust the import alias or replace it with a local path.

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