UI/Components/EmptyState/EmptyState.razor

A Blazor-style Razor UI component for s&box that renders an empty-state panel with an icon, title, and optional subtitle. It defines three string properties (Icon, Title, Sub) and uses them in the markup; BuildHash combines them for change detection.

@namespace Sunless.Libraries.UI
@using Sandbox
@using Sandbox.UI
@attribute [StyleSheet]
@inherits Panel

<root>
	<div class="empty">
		<div class="empty-icon">@Icon</div>
		<div class="empty-title">@Title</div>
		@if ( !string.IsNullOrEmpty( Sub ) )
		{
			<div class="empty-sub">@Sub</div>
		}
	</div>
</root>

@code
{
	public string Icon { get; set; } = "-- --";
	public string Title { get; set; } = "";
	public string Sub { get; set; } = "";

	protected override int BuildHash() => HashCode.Combine( Icon, Title, Sub );
}