Getting started
Foundation
Typography
Navigation
Feedback
Forms
Confirmation dialogs are used to confirm a dangerous or destructive action that's about to be performed by the user.
| Name | Default | Description |
|---|---|---|
isOpen | — | booleanDetermines whether dialog is open. |
isConfirmButtonDisabled | — | booleanDetermines whether confirm button is disabled. It's useful when there's additional layer of confirmation inside an alert dialog. For example, there could be a password input for especially dangerous actions or a text input to confirm the name of a resource that gets deleted. |
title | — | stringDialog title. |
children | — | ReactNodeDialog content. Use it to warn user about the consequences of the action they're about to perform. |
confirmButtonText | — | stringText of a button that confirms the action. |
variant | — | "danger" | "warning"Dialog variant. |
onClose | — | () => voidCallback for when dialog is closed. |
onCancel | — | () => voidOptional callback for when user canceled the action. |
onConfirm | — | () => Promise<void> | voidCallback for when user has confirmed the action. |