API documentation.

Check out the Examples for this component.


Name Type Default Description
Label String null
Icon String null Icon to use if set will turn the button into a MudIconButton.
IconColor Color Color.Inherit The color of the icon. It supports the theme colors.
StartIcon String null Icon placed before the text if set.
EndIcon String null Icon placed after the text if set.
Color Color Color.Default The color of the button. It supports the theme colors.
Size Size Size.Medium The button Size of the component.
Variant Variant Variant.Text The button variant to use.
Dense Boolean False If true, compact vertical padding will be applied to all menu items.
FullWidth Boolean False If true, the list menu will be same width as the parent.
MaxHeight Nullable<Int32> null Sets the maxheight the menu can have when open.
PositionAtCurser Boolean False If true, instead of positioning the menu at the left upper corner, position at the exact cursor location. This makes sense for larger activators
ActivatorContent RenderFragment null Place a MudButton, a MudIconButton or any other component capable of acting as an activator. This will override the standard button and all parameters which concern it.
ActivationEvent MouseEvent MouseEvent.LeftClick Specify the activation event when ActivatorContent is set
Direction Direction Direction.Bottom Sets the direction the select menu will start from relative to its parent.
OffsetY Boolean False If true, the select menu will open either before or after the input depending on the direction.
OffsetX Boolean False If true, the select menu will open either above or bellow the input depending on the direction.
ChildContent RenderFragment null Add menu items here
HtmlTag String "button" The HTML element that will be rendered in the root by the component By default, is a button
ButtonType ButtonType ButtonType.Button The button Type (Button, Submit, Refresh)
Link String null If set to a URL, clicking the button will open the referenced document. Use Target to specify where
Target String null The target attribute specifies where to open the link, if Link is specified. Possible values: _blank | _self | _parent | _top | framename
Disabled Boolean False If true, the button will be disabled.
DisableElevation Boolean False If true, no drop-shadow will be used.
DisableRipple Boolean False If true, disables ripple effect.
Command ICommand null Command executed when the user clicks on an element.
CommandParameter Object null Command parameter.
OnClick EventCallback<MouseEventArgs> Button click event.
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.
An error has occurred. This application may no longer respond until reloaded. Reload 🗙