Measured entry

neobrutalism-badge

badgebrutalism

A compact React badge with default and neutral variants, optional child-slot composition, and a neobrutalist border treatment. It ships as a shadcn registry TSX file and relies on Radix Slot, class-variance-authority, a cn helper, Tailwind utilities, and project theme tokens.

Specimen
Harness screenshot of neobrutalism-badge at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of neobrutalism-badge at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of neobrutalism-badge 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 neobrutalism-badge
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal31.3 KB (96.8 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 783ms
error during build:
[vite]: Rollup failed to resolve import "@radix-ui/react-slot" from "<sandbox>re-c0957ac5f155/src/cut/components/ui/badge.tsx".

Verdict

A sound, focused badge for teams already using neobrutalist Tailwind conventions. It builds and mounts cleanly without a provider, but its custom tokens and helper imports make it most convenient inside a compatible design-system setup.

Use it if

  • You need short status, category, or version labels that fit a neobrutalist interface.
  • You want variant styling plus an asChild option for badge-like links or other composed elements.
  • Your Tailwind theme already defines the custom color, radius, and font tokens used by the component.

Skip it if

  • Your product uses a restrained or borderless visual system where the heavy outline would feel out of place.
  • You need a self-contained component with no Radix, variant helper, Tailwind, or custom theme-token setup.
  • You need interactive status controls rather than a presentational label.

Install

Installation record for neobrutalism-badge
Declared dependenciesclsx, 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 Radix Slot and class-variance-authority, provide the cn utility backed by clsx and tailwind-merge, configure Tailwind, and map the referenced color, radius, font, focus-ring, and foreground tokens into your theme. Preserve the path alias or replace it with a local import.

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.

License
MIT
Record published
2026-08-16

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.