ant-design-blazor/components/button/Button.razor
James Yeung d16144ece0 refactor: remove the 'ant' prefix for some components that is already in demos (#162)
* refactor: button

* refactor: avatar

* refactor: alert

* fix: input group compact
2020-05-29 12:55:15 +08:00

18 lines
462 B
C#

@namespace AntDesign
@inherits AntDomComponentBase
<CascadingValue Value="this">
<button class="@ClassMapper.Class" style="@Style" id="@Id" @onclick="HandleOnClick" disabled="@Disabled">
@if (Loading)
{
<AntIcon Type="loading"></AntIcon>
}
@if (!string.IsNullOrEmpty(Icon))
{
<AntIcon Type="@Icon" Style="@IconStyle"></AntIcon>
}
@ChildContent
</button>
</CascadingValue>