-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
MudButton.razor
32 lines (31 loc) · 1.07 KB
/
MudButton.razor
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
@namespace MudBlazor
@inherits MudBaseButton
<MudElement @bind-Ref="@_elementReference"
HtmlTag="@HtmlTag"
Class="@Classname"
Style="@Style"
@attributes="UserAttributes"
@onclick="OnClickHandler"
type="@ButtonType.ToDescriptionString()"
href="@Href"
target="@Target"
rel="@GetRel()"
disabled="@GetDisabledState()"
title="@Title"
ClickPropagation="@GetClickPropagation()">
<span class="mud-button-label">
@if (!string.IsNullOrWhiteSpace(StartIcon))
{
<span class="@StartIconClass">
<MudIcon Disabled="@Disabled" Icon="@StartIcon" Size="@(IconSize ?? Size)" Color="@IconColor" />
</span>
}
@ChildContent
@if (!string.IsNullOrWhiteSpace(EndIcon))
{
<span class="@EndIconClass">
<MudIcon Disabled="@Disabled" Icon="@EndIcon" Size="@(IconSize ?? Size)" Color="@IconColor" />
</span>
}
</span>
</MudElement>