Properties
Name | Type | Default | Description |
---|---|---|---|
Behavior | |||
ChildContent |
RenderFragment |
null | Child content of component. |
ClickPropagation |
bool |
False | If true, the click event bubbles up to the containing/parent component. |
Disabled |
bool |
False | If true, the button will be disabled. |
EndIcon |
string |
null | Icon placed after the text if set. |
StartIcon |
string |
null | Icon placed before the text if set. |
Click action | |||
ButtonType |
ButtonType |
ButtonType.Button | The button Type (Button, Submit, Refresh) |
Href |
string |
null | If set to a URL, clicking the button will open the referenced document. Use Target to specify where |
HtmlTag |
string |
"button" | The HTML element that will be rendered in the root by the component By default, is a button |
Rel |
string |
null | The value of rel attribute for web crawlers. Overrides "noopener" set by MudBaseButton.Target attribute. |
Target |
string |
null | The target attribute specifies where to open the link, if Href is specified. Possible values: _blank | _self | _parent | _top | framename |
Appearance | |||
Color |
Color |
Color.Default | The color of the component. It supports the theme colors. |
DisableElevation |
bool |
False | If true, no drop-shadow will be used. |
DisableRipple |
bool |
False | If true, disables ripple effect. |
FullWidth |
bool |
False | If true, the button will take up 100% of available width. |
IconClass |
string |
null | Icon class names, separated by space |
IconColor |
Color |
Color.Inherit | The color of the icon. It supports the theme colors. |
IconSize |
Size? |
null | The size of the icon. When null, the value of Size is used. |
Size |
Size |
Size.Medium | The Size of the component. |
Variant |
Variant |
Variant.Text | The variant to use. |
Common | |||
Class |
string |
null | User class names, separated by space. |
Style |
string |
null | User styles, applied on top of the component's own classes and styles. |
Tag |
object |
null | Use Tag to attach any user data object to the component for your convenience. |
UserAttributes |
Dictionary<string, object> |
UserAttributes carries all attributes you add to the component that don't match any of its parameters. They will be splatted onto the underlying HTML tag. | |
EventCallbacks
Name | Type | Description |
---|---|---|
OnClick |
EventCallback<MouseEventArgs> | Button click event. |
Methods
Name | Parameters | Return | Description |
---|---|---|---|
ValueTask FocusAsync() |
ValueTask |