@inherits DComponentBase @* daisyUI Link: https://daisyui.com/components/link/ . Without Href it renders a } else { @ChildContent } @code { [Parameter] public RenderFragment ChildContent { get; set; } [Parameter] public string Href { get; set; } [Parameter] public DColor Color { get; set; } /// Underline only on hover (link-hover). [Parameter] public bool Hover { get; set; } [Parameter] public EventCallback OnClick { get; set; } string CssClass => Cx("link", ColorClass, Hover ? "link-hover" : null, Class); string ColorClass => Color switch { DColor.Neutral => "link-neutral", DColor.Primary => "link-primary", DColor.Secondary => "link-secondary", DColor.Accent => "link-accent", DColor.Info => "link-info", DColor.Success => "link-success", DColor.Warning => "link-warning", DColor.Error => "link-error", _ => null }; }