HxToast

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

Usage

See HxMessenger documentation.

API

Parameters

Name Type Description
AutohideDelay int? Delay in miliseconds 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

API

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 🗙