HxToast #

Bootstrap Toast component. Not intended to be used in user code, use HxMessenger. After first render component never updates.

Basic usage #

See HxMessenger documentation.


Parameters #

Name Type Description
AutohideDelay int? Delay in milliseconds to automatically hide toast.
Color ThemeColor? Color-scheme.
ContentTemplate RenderFragment Content (body) template.
ContentText string Content (body) text.
CssClass string Css class to render with toast.
HeaderIcon IconBase Header icon.
HeaderTemplate RenderFragment Header template.
HeaderText string Header text.
ShowCloseButton bool Indicates whether to show close button.

Event callbacks #

Name Type Description
OnToastHidden EventCallback Fires when toast is hidden (button or autohide).

CSS variables #

Name Description Default
--hx-toast-container-margin Margin of the container. 0.5rem

HxToastContainer #


Parameters #

Name Type Description
ChildContent RenderFragment Toasts to display.
CssClass string Additional CSS class.
Position ToastContainerPosition Positioning of the toasts on screen.
An unhandled error has occurred. Reload 🗙