Overlays
Typed confirm dialog
Typed confirm dialog: A destructive-action dialog whose confirm button only unlocks once someone types an exact matching phrase, guarding against accidental clicks.
Using Typed confirm dialog
Typed confirm dialog uses the card preview frame with a light/dark theme setting.
Customize the preview
These controls are passed to the demo. Defaults and limits describe the preview; consult the implementation for its full prop API.
| Control | Type | Default | Preview limits |
|---|---|---|---|
confirmPhrase | text | delete | Up to 24 characters |
accentColor | color | #FF4D8D | No additional limit in the metadata. |
dangerLabel | text | Delete project | Up to 32 characters |
Which frameworks are available for Typed confirm dialog?
Typed confirm dialog is available for React, Vue, Svelte, Astro, HTML. The live preview uses React; the source observations below apply to index.tsx. Check the selected port before relying on the same interactions.
What does Typed confirm dialog depend on?
The React metadata lists these npm dependencies beyond React: motion, radix-ui, clsx, tailwind-merge.
What accessibility details are visible in Typed confirm dialog?
The React source for Typed confirm dialog includes: native elements (button, label); attributes and handlers (aria-describedby, aria-hidden, aria-live, onKeyDown); explicit roles (alertdialog, status); key comparisons (Enter). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.
How does Typed confirm dialog handle reduced motion?
Typed confirm dialog reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: duration: reduced ? 0 : 0.16; duration: reduced ? 0 : 0.2; exitTransition: reduced ? { duration: 0 } : { duration: 0.16, ease: [0.4, 0, 1, 1] }. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.