# Confirm Button Click and Create a Message Box

## Environment

<table>
    <tbody>
        <tr>
            <td>Product</td>
            <td>
                Dialog for Blazor,<br />
                Window for Blazor
            </td>
        </tr>
    </tbody>
</table>

## Description

Sometimes user actions can be sensitive or result in data deletion. For such cases, you may want to require confirmation to protect against accidental clicks.

## Solution

UI for Blazor includes [Alert, Confirm and Prompt popup dialogs](https://www.telerik.com/blazor-ui/documentation/components/dialog/predefined), which can be used to interact with the user.

Another option is to use the [Window component](https://www.telerik.com/blazor-ui/documentation/components/window/overview), if the predefined Dialogs do not provide enough flexibility for a specific scenario. Here are two examples:

* <https://github.com/telerik/blazor-ui/tree/master/common/confirm-button>
* <https://github.com/telerik/blazor-ui/tree/master/common/message-box>
