Measured entry
neobrutalism-nbutton
A React button primitive with a neobrutalist border, offset-shadow interactions, four visual variants, size options, disabled styling, and an asChild composition path. It ships as a shadcn registry item and relies on Tailwind theme tokens, Radix Slot, class-variance-authority, and a cn class-merging 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 | clean at 375, 768, 1440 |
| Axe critical | 0 |
| Axe serious | 0 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 31.7 KB (97.2 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 1.28s error during build: [vite]: Rollup failed to resolve import "class-variance-authority" from "<sandbox>re-4a1b452696bf/src/cut/components/ui/button.tsx".
Verdict
A sound, focused button primitive that builds and mounts cleanly, stays composed without a provider, and covers the core neobrutalist treatments. Choose it when its custom theme vocabulary already fits your system; otherwise expect a small but necessary styling integration.
Use it if
- You want a compact neobrutalist button with default, neutral, shadowless, and reverse interaction treatments.
- Your design system already exposes the custom color, border, radius, and shadow tokens referenced by its Tailwind classes.
- You need asChild composition for links or other controls while preserving the component styling.
Skip it if
- Your interface uses understated controls and the heavy border with shifting shadow would clash with the visual language.
- You cannot add project-specific Tailwind theme tokens for its colors, radius, and directional shadows.
- You need loading state, icon placement rules, or intent variants such as destructive and outline without extending the source.
Install
| Declared dependencies | @radix-ui/react-slot, 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 a cn helper backed by clsx and tailwind-merge, configure the referenced Tailwind color, radius, and directional shadow tokens, and replace the path alias if your build does not support it.
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 button pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.
- neu-buttonneumorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 17.8KB
- Bare
- pass
- Prov
- NO
- clay-buttonclaymorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 18.2KB
- Bare
- pass
- Prov
- NO
- tripled-animated-radio-shadcnuiminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 58.2KB
- Bare
- pass
- Prov
- NO
- ruixen-glow-link-buttonliquid-glass
- Renders
- YES
- A11y
- 0
- Gzip
- 58.9KB
- Bare
- pass
- Prov
- NO
- tripled-mood-gradient-button-shadcnuigradient-glow
- Renders
- YES
- A11y
- 0
- Gzip
- 59.2KB
- Bare
- pass
- Prov
- NO
- ruixen-glass-ai-cardliquid-glass
- Renders
- YES
- A11y
- 0
- Gzip
- 59.5KB
- Bare
- pass
- Prov
- NO