Default Light
MgLibrary
Overview
Installation
Buttons
Cards
Charts
Codes
Data Grids
Dropdowns
Editors
Headers & Animations
Icons
Indicators
Inputs
Lists
Modals
Menus
Panels
Pills & Chips
Scheduling
Tabs
Time Line
Trees
Customization

Button Group

Groups multiple buttons into a joined control for related actions. Supports selection change events and automatic corner rounding for a unified appearance.

Use this example to explore default behavior, customization points, and accessibility-friendly patterns in a real Blazor page.

Button Group

MgButtonGroup

API Reference: MgButtonGroup

Property Type Default Description
Buttons List<MgButtonDefinition> new() List of buttons to display in the group.
SelectionChanged EventCallback<string> - Triggered when the selected button changes.
An unhandled error has occurred. Reload 🗙