Skip to content
Menu

Overlays

Confirm action modal

Confirm action modal: A centered confirmation dialog that springs open over a dimming backdrop, asking the visitor to confirm or cancel a destructive action.

Using Confirm action modal

Confirm action modal uses the card preview frame with a 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.

ControlTypeDefaultPreview limits
questiontextDelete project?Up to 60 characters
detailtextThis action cannot be undone.Up to 80 characters
accentColorcolor#FF4D8DNo additional limit in the metadata.
confirmLabeltextDeleteUp to 20 characters
Which frameworks are available for Confirm action modal?

Confirm action modal 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 Confirm action modal depend on?

The React metadata lists these npm dependencies beyond React: motion, radix-ui, clsx, tailwind-merge.

What accessibility details are visible in Confirm action modal?

The React source for Confirm action modal includes: native elements (button); attributes and handlers (aria-hidden); explicit roles (alertdialog). These are source observations. Verify accessible names, focus order and keyboard behavior in the composed page.

How does Confirm action modal handle reduced motion?

Confirm action modal reads the motion preference in its React source through useReducedMotion(). Preference-dependent expressions in index.tsx: duration: reduced ? 0 : 0.14; duration: reduced ? 0 : 0.18; reduced ? { duration: 0 } : { type: "spring", stiffness: 420, damping: 20, mass: 0.9 }. Check the full implementation, shared styles and selected port with reduced motion enabled; these observations do not establish that every animation stops.

Connect your agent

Related open components