Measured entry
neobrutalism-alert
A React and Tailwind alert primitive shipped as shadcn registry source, with default and destructive variants plus separate title and description parts. It uses class-variance-authority and a cn helper backed by clsx and tailwind-merge, and its neobrutalist appearance relies on project-specific 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 | 30.0 KB (95.5 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 704ms error during build: [vite]: Rollup failed to resolve import "class-variance-authority" from "<sandbox>re-b911e02abc3f/src/cut/components/ui/alert.tsx".
Verdict
A dependable choice for apps already committed to this visual system. It verified cleanly and stays easy to compose, but its opinionated theme tokens and always-urgent alert semantics make it a poor drop-in for generic informational callouts.
Use it if
- You need a prominent static status message with a clear title and supporting copy.
- Your app already uses neobrutalist borders, offset shadows, bold color blocks, and matching Tailwind theme tokens.
- You want composable alert parts that accept ordinary React attributes and optional leading icons.
Skip it if
- You need dismissal, actions, timed removal, or state management built into the component.
- You need passive informational callouts that should not be announced assertively, since every instance uses the alert role.
- Your design system lacks its custom color, radius, shadow, and typography tokens and you do not want to recreate them.
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 |
A non-shadcn project must add class-variance-authority, clsx, and tailwind-merge, provide the cn utility, configure Tailwind for the source classes, and define compatible color, radius, shadow, and typography theme tokens.
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 alert pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.
- 8bitcn-toastskeuomorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 30.8KB
- Bare
- pass
- Prov
- NO
- neobrutalism-sonnerbrutalism
- Renders
- YES
- A11y
- 0
- Gzip
- 31.6KB
- Bare
- pass
- Prov
- NO
- shadcn-alertunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 12.5KB
- Bare
- fail
- Prov
- NO
- reui-alertminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 29.9KB
- Bare
- fail
- Prov
- NO
- shadcn-sonnerunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 31.9KB
- Bare
- fail
- Prov
- NO
- hextaui-sonnerminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 32.1KB
- Bare
- fail
- Prov
- NO