@namespace Connected.Components

@inherits ButtonBase

@using Connected.Extensions;

<Element disabled="@Disabled"
         title="@GlyphTitle"
         type="@ButtonType.ToDescription()"
         ClassList="@CompiledClassList.ToString()"
         HtmlTag="@HtmlTag"
         PreventOnClickPropagation="PreventOnClickPropagation"
         @attributes="CustomAttributes"
         @onclick="OnClick">
   @if (!String.IsNullOrEmpty(Glyph))
   {
      <span name="glyph-container" class="glyph-button-label">
         <Icon Glyph="@Glyph" />
      </span>
   }
   else
   {
      <TextContent Typo="Typo.body2">
         @ChildContent
      </TextContent>
   }
</Element>
