Skip to main content

Confirm Modal

Renders a Mantine Modal with confirm/cancel buttons and optional title and content

Storybook Docs​

Props​

NameTypeDefaultDescription
cancelColorMantineColor"gray"MantineColor of the cancel button
cancelLabelstring"Cancel"Label of the cancel button
confirmColorMantineColor"primary"MantineColor of the confirm button
confirmLabelstring"Confirm"Label of the confirm button
childrenReactNode-Content displayed below the title
onCancel() => void-Called when cancel button is clicked
onConfirm() => void-Called when confirm button is clicked
titlestring-Title displayed on top of the modal
...--extends Modal props