VanillaReactLight & dark1.3K views
A token-driven confirmation alert dialog with a destructive primary action, a cancel action, focus management, Escape to close, and a live result line — fully design-system agnostic.
Dialog component
A token-driven confirmation alert dialog with a destructive primary action, a cancel action, focus management, Escape to close, and a live result line — fully design-system agnostic.
role="alertdialog" so assistive tech treats it as an urgent, blocking prompttransform and opacityaria-livebody.darkprefers-reduced-motionrole="alertdialog" with aria-modal="true" on the dialogaria-labelledby and aria-describedby point at the title and textaria-live="polite" on the result line announces the outcomeprefers-reduced-motion: reduce disables all animationsOpen Alert Dialog in Atheros AI Builder, pick a design system and ask the AI assistant to change the layout, copy or behaviour — the dialog is regenerated against your tokens. Take the HTML, CSS, JS and React source with you, or pull it into your repo from Claude Code, Cursor or Codex over MCP.
300+ production-ready components and Atheros AI models. Every paid plan includes access to the whole Atheros — AI Builder and Learning.
Starting at $9.9 per month, billed annually