MatBlazor - Material Design components for Blazor and Razor Components

MatIconButton

Icons are appropriate for buttons that allow a user to take actions or make a selection, such as adding or removing a star to an item.

Name Type Description
ChildContent RenderFragment Child content of MatIconButton
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.
Disabled Boolean Button is disabled.
Icon String Default Button Icon
Link String Navigate to this url when clicked.
OnClick EventCallback<UIMouseEventArgs> Event occurs when the user clicks on an element.
OnMouseDown EventCallback<UIMouseEventArgs>
RefBack ForwardRef
Style String Specifies an inline style for an DOM element.
Target String *Not available yet
ToggleIcon String Icon to use when Button is clicked
Ref ElementRef Returned ElementRef reference for DOM element.
Example

Simple use

With Font-Awsome Icons
With href link
With Toggle
If you like MatBlazor, please put a star on GitHub.