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
| Parameter | Default | Type |
|---|---|---|
AutoClose | true | bool? |
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. | ||
ChildContent | null | RenderFragment |
Specifies the content to be rendered inside this CloseButton. | ||
Disabled | false | bool |
Flag to indicate that the button is not responsive for user interaction. | ||
Events
| Event | Type |
|---|---|
Clicked | EventCallback<MouseEventArgs> |
Notifies when the button is clicked. | |