@inherits DComponentBase @* One button of a DDock: ChildContent is the icon and Text the dock-label under it. Renders an when Href is set, with aria-current="page" while Active. *@ @if (Href is null) { } else { @ChildContent @if (Text is not null) { @Text } } @code { /// The icon. [Parameter] public RenderFragment ChildContent { get; set; } [Parameter] public string Text { get; set; } [Parameter] public bool Active { get; set; } [Parameter] public bool Disabled { get; set; } [Parameter] public string Href { get; set; } [Parameter] public EventCallback OnClick { get; set; } string CssClass => Cx(Active ? "dock-active" : null, Class); }