Measured entry
reui-alert
A copy-in React alert primitive shipped as TypeScript through the ReUI shadcn registry. It provides alert, title, description, and action slots, with semantic alert behavior and several status variants. Styling comes from Tailwind utility classes and theme tokens; variant composition uses class-variance-authority and the component imports a local cn 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 | 29.9 KB (95.3 KB build, 65.4 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 1m 41s error during build: [vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/alert.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'
Verdict
A solid fit for an existing ReUI or shadcn-based design system: the slot structure is practical, the variants cover common states, and the component behaves cleanly in the configured harness. It needs a shadcn-style setup and does not mount as a bare drop-in.
Use it if
- You need an inline status banner with optional icon, title, description, and action content.
- Your app already follows shadcn conventions for aliases, Tailwind theme tokens, and a shared cn helper.
- You want consistent default, destructive, informational, success, warning, and inverted treatments from one primitive.
Skip it if
- You need a standalone package that works without project-level aliases, utilities, or theme tokens.
- Your message should not be announced immediately by assistive technology, since the root always uses alert semantics.
- You need built-in dismissal, timing, stacking, or notification state rather than a presentational alert primitive.
Install
| Declared dependencies | class-variance-authority |
|---|---|
| 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 |
For a non-shadcn project, add class-variance-authority, provide a cn class-merging helper at the expected alias or change the import, configure that alias, and supply Tailwind plus the referenced card, foreground, status, border, and inverted 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/keenthemes/reuiAlternatives
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
- neobrutalism-alertbrutalism
- Renders
- YES
- A11y
- 0
- Gzip
- 30.0KB
- 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