Skip to content

ButtonGroup

Mika Berglund edited this page Feb 28, 2020 · 2 revisions

ButtonGroup Component

The ButtonGroup component is used to group buttons together. Buttons in the same group are joined together.

Inheritance

ButtonGroup : BootstrapComponentBase

Parameters

Name Type Description
Site ButtonSize? Specifies the default size for buttons in the group.

Examples

Basic button group

@using BlazorBootstrap.Components

<ButtonGroup>
    <Button Color="NamedColor.Success">Button #1</Button>
    <Button Color="NamedColor.Danger">Button #2</Button>
    <Button Color="NamedColor.Info">Button #3</Button>
</ButtonGroup>

Specify button size

<ButtonGroup Size="ButtonSize.Large">
    <!-- All buttons will be large by default -->
    <Button>Button #1</Button>
    <Button>Button #2</Button>
</ButtonGroup>
Clone this wiki locally