Skip to content

Confirm dialog

Pro

One dialog for "are you sure?": a question, what will happen, and two actions, locked while the action runs, with a failure kept inside it. Not an M3 component (@windmorph/react-pro).

import { ConfirmDialog, ConfirmDialogActions } from '@windmorph/react-pro';

Part of Windmorph Pro, paid components on the free core, not on sale yet. See the Pro guide for what it includes and to register interest.

Playground

Code

import { ConfirmDialog } from '@windmorph/react-pro'; <ConfirmDialog  title="Remove Alex from the team?"  description="They lose access straight away. You can invite them again."  confirmLabel="Remove"  destructive/>

Examples

An action that can't be undone, by promise

From a trigger, with no state

With a field the decision needs

Leaving with unsaved changes

The actions as a part, in a form dialog