MatBlazor - Material Design components for Blazor and Razor Components

MatButton

Buttons communicate an action a user can take.
They are typically placed throughout your UI, in places like dialogs, forms, cards, and toolbars.

Name Type Description
ChildContent RenderFragment Inline label of Button.
Class String Specifies one or more classnames for an DOM element.
Command ICommand Command executed when the user clicks on an element.
CommandParameter Object Command parameter.
Dense Boolean Button has dense style.
Disabled Boolean Button is disabled.
Icon String Specifies an button's icon.
Label String Text label of Button.
Link String Link to a url when clicked.
Name String
OnClick EventCallback<UIMouseEventArgs> Event occurs when the user clicks on an element.
Outlined Boolean Button has outlined style.
Raised Boolean Button has raised style.
RefBack ForwardRef
Style String Specifies an inline style for an DOM element.
TrailingIcon String Specifies if icon has trailing position.
Type String
Unelevated Boolean Button has unelevated style.
Value String
Ref ElementRef Returned ElementRef reference for DOM element.
Example

Simple use

With Font-Awsome Icons and Link
Button types
Disabled
Icons
Trailing Icons
Button Type
If you like MatBlazor, please put a star on GitHub.