@inject NavigationManager Navigation @inject IJSRuntime JS @code { [Parameter] public string Title { get; set; } = string.Empty; /// /// Optional subtitle text displayed below the title. /// [Parameter] public string? Subtitle { get; set; } /// /// Fallback URL if there's no browser history. Uses history.back() first. /// [Parameter] public string? BackHref { get; set; } /// /// Whether to show the back button. Default is true. /// [Parameter] public bool ShowBack { get; set; } = true; private async Task GoBack() { await JS.InvokeVoidAsync("history.back"); } }