Blazor ButtonGroup - Overview
- EXAMPLE
- VIEW SOURCE
- EDIT IN TELERIK REPL
- Change Theme
default
Default Buttons
Buttons with icons
ButtonGroup with stretched buttons
Disabled ButtonGroup
- Overview.razor
The ButtonGroup component is part of Telerik UI for Blazor, a professional grade UI library with 110+ native components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.
Description
The Telerik UI for Blazor ButtonGroup component serves as a container for two or more buttons, typically with a shared purpose. A common example is a formatting group in a text editor or word processor like groups for alignment (left, center, right) and styling (italic, bold, underline). The ButtonGroup inherits the features found in the Telerik UI for Blazor Button and adds a few.
A unique feature and common use case for the ButtonGroup is the selection of toggle buttons. You can group a set of toggle buttons and restrict the user to one selection, much like radio buttons, or allow multiple selection, much like checkboxes. In either case, you can manage the events as one group rather than worrying about each button separately.
The ButtonGroup also supports theming, keyboard navigation and accessibility, just as its individual button counterpart does. Apply a common color pallet, assign icons via font or sprite, set the size and much more.
The demo above shows different ways you can configure the rendering of the grouped buttons, while allowing multiple selection.