Blazorise Close Button API

Explore the Blazorise Close Button API reference for parameters, events, methods, and related types.

For examples and usage guidance, see the Close Button documentation.

API

Parameters

ParameterDefaultType
AutoClosetruebool?

If true, the parent Alert, Modal, Toast, or Offcanvas will be automatically closed when CloseButton button is placed inside of them.
When unspecified, uses BlazoriseOptions.AutoCloseParent, falling back to true.
ChildContentnullRenderFragment

Specifies the content to be rendered inside this CloseButton.
Disabledfalsebool

Flag to indicate that the button is not responsive for user interaction.

Events

EventType
ClickedEventCallback<MouseEventArgs>

Notifies when the button is clicked.
On this page