Library Blazor Components Dialog Reference Classes Dialog CloseButton

CloseButton

Display the close button at the top-right corner of dialog. Click on the button closes the dialog, but also invokes OnButtonClick event with DialogButton.Close as an argument.

razor
[Parameter]
public bool CloseButton { get; set; } = true;

Sign in