Confirm Dialog Modal
A production-scale, light + dark Confirm Dialog Modal component. Copy-paste via the CLI; you own the code.
npx lerpa-cli add confirm-dialog-modalUsage
import { ConfirmDialogModal } from "@lerpa/ui";
<ConfirmDialogModal />Props
| Prop | Type | Default | Description |
|---|---|---|---|
| title | string | — | |
| description | string | — | |
| confirmLabel | string | — | |
| cancelLabel | string | — | |
| destructive | boolean | — | |
| accent | string | — | |
| defaultOpen | boolean | — | |
| onConfirm | () => void | — | |
| onCancel | () => void | — |
Accessibility
- Keyboard accessible interactive elements.
- Respects prefers-reduced-motion where animated.
- Color is never the only signal.