Measured entry
hextaui-alert-dialog
dialogminimal-flatmotion on file
A copy-in React alert dialog built as a typed wrapper around Radix Alert Dialog primitives. It ships through a shadcn registry and composes a shared button recipe, a cn class merger, Tailwind theme tokens, and state-driven animation utilities; no provider is required.



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 | 44.1 KB (109.6 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.07s error during build: [vite]: Rollup failed to resolve import "class-variance-authority" from "<sandbox>re-9971d895fde2/src/components/ui/button.tsx".
Verdict
A dependable confirmation dialog with a sensible responsive layout and clean Radix semantics. It built and mounted in both the full harness and a bare setup, with no observed accessibility or overflow problems. Best suited to teams already comfortable owning copied registry code.
Use it if
- You need a focused confirmation step for destructive or irreversible actions.
- Your app already uses Tailwind theme tokens and shadcn-style shared utilities.
- You want Radix-managed focus, dismissal, and accessible dialog semantics with editable local source.
Skip it if
- You need a general modal for forms or informational content rather than an explicit decision.
- Your design system does not use utility classes or shadcn-style button variants.
- You want a dependency-light native dialog and do not need Radix behavior.
- You cannot accept the added client-side dialog primitives for a rarely used confirmation.
Install
| Declared dependencies | @radix-ui/react-alert-dialog, @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, install the Radix alert-dialog and slot packages plus clsx and tailwind-merge. Add the cn helper, the shared button variant module, matching theme tokens, and Tailwind animation utilities, then replace the registry path aliases or configure equivalent aliases.
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/preetsuthar17/HextaUIAlternatives
Other published entries for the dialog pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.
- shadcn-dialogunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 26.7KB
- Bare
- fail
- Prov
- NO
- 8bitcn-dialogueskeuomorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 34.2KB
- Bare
- fail
- Prov
- NO
- neobrutalism-dialogbrutalism
- Renders
- YES
- A11y
- 0
- Gzip
- 40.5KB
- Bare
- fail
- Prov
- NO
- neobrutalism-ndialogbrutalism
- Renders
- YES
- A11y
- 0
- Gzip
- 40.5KB
- Bare
- fail
- Prov
- NO
- neobrutalism-alert-dialogbrutalism
- Renders
- YES
- A11y
- 0
- Gzip
- 40.7KB
- Bare
- fail
- Prov
- NO
- shadcn-alert-dialogunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 41.5KB
- Bare
- fail
- Prov
- NO