Table of Contents

Class TwButtonGroup

Namespace
TwBlazor.Components
Assembly
TwBlazor.dll

Represents a container component for grouping multiple TwButton components together.

public class TwButtonGroup : TwBlazorComponentBase, IComponent, IHandleEvent, IHandleAfterRender, ITwComponent
Inheritance
TwButtonGroup
Implements
Inherited Members

Remarks

TwButtonGroup provides a way to visually group related buttons with consistent spacing and layout. Buttons within the group can be oriented horizontally or vertically, and support customizable spacing.

Constructors

TwButtonGroup()

public TwButtonGroup()

Properties

ChildContent

Gets or sets the content to display within the button group.

[Parameter]
public RenderFragment? ChildContent { get; set; }

Property Value

RenderFragment

FullWidth

Gets or sets whether buttons should take full width of the container.

[Parameter]
public bool FullWidth { get; set; }

Property Value

bool

Legend

Gets or sets the legend text for the button group.

[Parameter]
public string? Legend { get; set; }

Property Value

string

LegendClass

Gets or sets the CSS class for the legend element.

[Parameter]
public string? LegendClass { get; set; }

Property Value

string

Vertical

Gets or sets the orientation of the button group.

[Parameter]
public bool Vertical { get; set; }

Property Value

bool

Remarks

Default is horizontal. Set to false for vertical orientation.

Methods

BuildRenderTree(RenderTreeBuilder)

Renders the component to the supplied RenderTreeBuilder.

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder