@namespace Connected.Components

@inherits ButtonBase

@using Connected.Extensions;

<Element    HtmlTag="@HtmlTag"
            Class="@Classname"
            @attributes="CustomAttributes"
            @onclick="OnClick"
            type="@ButtonType.ToDescription()"
            disabled="@Disabled"
			title="@Title">
    <span class="fab-label">
        @if (!string.IsNullOrWhiteSpace(StartIcon))
        {
            <Icon Icon="@StartIcon" Color="@IconColor" Size="@IconSize" />
        }
        @Label
        @if (!string.IsNullOrWhiteSpace(EndIcon))
        {
            <Icon Icon="@EndIcon" Color="@IconColor" Size="@IconSize" />
        }
    </span>
</Element>
