@inherits BlazorComponentBase
@attribute [HtmlRole("button")]
<a @attribute="@AdditionalAttributes">@ChildContent</a>
@code{
[Parameter]public RenderFragment? ChildContent { get; set; }
}
public class Anchor : BlazorComponentBase, IHasChildContent
{
[HtmlRole("button")]
public Anchor()
{
}
[Parameter]public RenderFragment? ChildContent { get; set; }
}
<Anchor></Anchor>
<a role="button"></a>