Table of Contents

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

RenderFragment

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

string

Color

The color of all buttons in this group.

[Parameter]
[Category("Appearance")]
public Color Color { get; set; }

Property Value

Color

Remarks

Defaults to Default. Theme colors are supported.

DropShadow

Displays a shadow.

[Parameter]
[Category("Appearance")]
public bool DropShadow { get; set; }

Property Value

bool

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

bool

OverrideStyles

Overrides individual button styles with this group's style.

[Parameter]
[Category("Appearance")]
public bool OverrideStyles { get; set; }

Property Value

bool

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

bool

Size

The size of all buttons in the group.

[Parameter]
[Category("Appearance")]
public Size Size { get; set; }

Property Value

Size

Remarks

Defaults to Medium.

Variant

The display variant of all buttons in the group.

[Parameter]
[Category("Appearance")]
public Variant Variant { get; set; }

Property Value

Variant

Remarks

Defaults to Text. Other supported values are Outlined and Filled.

Vertical

Displays buttons vertically.

[Parameter]
[Category("Appearance")]
public bool Vertical { get; set; }

Property Value

bool

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

See Also