UI/Components/Toast/ToastHost.razor

A Razor UI component named ToastHost that lives under Sunless.Libraries.UI and inherits Sandbox.UI.Panel. It renders a single Toast component, binding title, message, icon, copy controls, tone, and event callbacks to a Toaster model, and uses BuildHash to trigger rerendering when Toaster.Version changes.

Networking
@namespace Sunless.Libraries.UI
@using Sandbox
@using Sandbox.UI
@inherits Panel

<root>
	<Toast [email protected] [email protected] [email protected]
	       [email protected] [email protected] [email protected]
	       OnDismiss=@(() => Toaster.Dismiss())
	       OnCopied=@(() => Toaster.RaiseCopySound()) />
</root>

@code
{
	protected override int BuildHash() => HashCode.Combine( Toaster.Version );
}