Class MudButtonGroup
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
Represents a group of connected MudButton components.
public class MudButtonGroup : MudComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged
- Inheritance
-
MudButtonGroup
- Implements
- Inherited Members
- Extension Methods
Constructors
MudButtonGroup()
public MudButtonGroup()
Properties
ChildContent
The custom content within this group.
[Parameter]
[Category("Behavior")]
public RenderFragment? ChildContent { get; set; }
Property Value
Remarks
This property allows for custom content to displayed inside of the group, but it is not required.
Classname
protected string Classname { get; }
Property Value
Color
The color of all buttons in this group.
[Parameter]
[Category("Appearance")]
public Color Color { get; set; }
Property Value
Remarks
Defaults to Default. Theme colors are supported.
DropShadow
Displays a shadow.
[Parameter]
[Category("Appearance")]
public bool DropShadow { get; set; }
Property Value
Remarks
Defaults to true
.
FullWidth
If true, the button group will take up 100% of available width.
[Parameter]
[Category("Appearance")]
public bool FullWidth { get; set; }
Property Value
OverrideStyles
Overrides individual button styles with this group's style.
[Parameter]
[Category("Appearance")]
public bool OverrideStyles { get; set; }
Property Value
Remarks
Defaults to true
. When true
, the button styles are defined by this group.
RightToLeft
[CascadingParameter(Name = "RightToLeft")]
public bool RightToLeft { get; set; }
Property Value
Size
The size of all buttons in the group.
[Parameter]
[Category("Appearance")]
public Size Size { get; set; }
Property Value
Remarks
Defaults to Medium.
Variant
The display variant of all buttons in the group.
[Parameter]
[Category("Appearance")]
public Variant Variant { get; set; }
Property Value
Remarks
Vertical
Displays buttons vertically.
[Parameter]
[Category("Appearance")]
public bool Vertical { get; set; }
Property Value
Remarks
Defaults to false
. When true
, buttons will be displayed vertically, otherwise horizontally.
Methods
BuildRenderTree(RenderTreeBuilder)
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder