@inherits DComponentBase @* daisyUI Browser mockup: https://daisyui.com/components/mockup-browser/ . The toolbar shows Toolbar if given, otherwise Url in an address bar (a div with the input class). *@
@if (Toolbar is not null) { @Toolbar } else if (Url is not null) {
@Url
}
@ChildContent
@code { [Parameter] public RenderFragment ChildContent { get; set; } /// Text of the address bar. [Parameter] public string Url { get; set; } /// Custom toolbar content, in place of the address bar. [Parameter] public RenderFragment Toolbar { get; set; } [Parameter] public string ContentClass { get; set; } string CssClass => Cx("mockup-browser", Class); }