@mocanvas/mocanvas · function

ExampleDialog

declare function ExampleDialog({ title, body, confirmLabel, cancelLabel, displayDontShowAgain, onCancel, onContinue, onClose, }: ExampleDialogProps): react.JSX.Element

A confirm/cancel dialog, complete.

Exists so an app that only needs "are you sure?" does not have to assemble one out of the five pieces above — and so the pieces have a worked example to copy when it needs something else.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.