Measured entry

neobrutalism-alert

alertbrutalism

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.

Specimen
Harness screenshot of neobrutalism-alert at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of neobrutalism-alert at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of neobrutalism-alert 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-alert
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal30.0 KB (95.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 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

Installation record for neobrutalism-alert
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

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.

License
MIT
Record published
2026-08-16

Alternatives

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.