Measured entry
neobrutalism-badge
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.



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 | clean at 375, 768, 1440 |
| Axe critical | 0 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 31.3 KB (96.8 KB build, 65.5 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 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
| Declared dependencies | clsx, tailwind-merge |
|---|---|
| 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 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.
Author repository
github.com/ekmas/neobrutalism-componentsAlternatives
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.
- neu-badgeneumorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 17.5KB
- Bare
- pass
- Prov
- NO
- clay-badgeclaymorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 17.9KB
- Bare
- pass
- Prov
- NO
- ruixen-load-rippleunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 17.9KB
- Bare
- pass
- Prov
- NO
- kibo-listminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 42.4KB
- Bare
- pass
- Prov
- NO
- ruixen-blurred-stagger-textunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 58.1KB
- Bare
- pass
- Prov
- NO
- tripled-auto-revealing-heading-shadcnuiminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 58.3KB
- Bare
- pass
- Prov
- NO