Blazor ButtonGroup - Overview
- EDIT IN TELERIK REPL
- Change Theme
Buttons with icons
ButtonGroup with stretched buttons
The ButtonGroup component is part of Telerik UI for Blazor, a professional grade UI library with 100+ native components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.
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.