-
-
Notifications
You must be signed in to change notification settings - Fork 380
Expand file tree
/
Copy pathMatButton.razor
More file actions
19 lines (18 loc) · 765 Bytes
/
MatButton.razor
File metadata and controls
19 lines (18 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
@namespace MatBlazor
@inherits BaseMatButton
<button class="@ClassMapper.AsString()" style="@StyleMapper.AsString()" @onclick="OnClickHandler" @onclick:stopPropagation=@OnClickStopPropagation @onfocus="OnFocusHandler" disabled=@Disabled aria-label="@(Label ?? Icon)" @ref="Ref" type="@Type" name="@Name" value="@Value" @attributes="Attributes" Id="@Id">
<div class="mdc-button__ripple"></div>
@if (Icon != null)
{
<span class="material-icons mdc-button__icon">@Icon</span>
}
@if (Label != null)
{
<span class="mdc-button__label">@Label</span>
}
@ChildContent
@if (TrailingIcon != null)
{
<span class="material-icons mdc-button__icon mat-button__icon--trailing">@TrailingIcon</span>
}
</button>