You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
798 B
30 lines
798 B
@namespace Connected.Components
|
|
|
|
@inherits ButtonBase
|
|
|
|
@using Connected.Extensions;
|
|
|
|
<Element @bind-Ref="@_elementReference"
|
|
HtmlTag="@HtmlTag"
|
|
Class="@Classname"
|
|
Style="@Style"
|
|
@attributes="UserAttributes"
|
|
@onclick="OnClickHandler"
|
|
type="@ButtonType.ToDescriptionString()"
|
|
href="@Href"
|
|
target="@Target"
|
|
rel="@(Target=="_blank"?"noopener":null)"
|
|
disabled="@Disabled"
|
|
title="@Title">
|
|
@if (!String.IsNullOrEmpty(Icon))
|
|
{
|
|
<span class="mud-icon-button-label">
|
|
<Icon Glyph="@Icon" Size="@Size" />
|
|
</span>
|
|
}
|
|
else
|
|
{
|
|
<TextContent Typo="Typo.body2" Color="ThemeColor.Inherit">@ChildContent</TextContent>
|
|
}
|
|
</Element>
|