Blazor ButtonGroup - Overview

Default Buttons

Buttons with icons

ButtonGroup with stretched buttons

Disabled ButtonGroup

  • Overview.razor
Loading the demo source code...please wait.

Style in ThemeBuilder

  • Custom SASS variables
  • Atomic customizations
  • Sharing projects
Start Theming
blazor ui ninja image

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.

This Blazor ButtonGroup Overview example is part of a unique collection of hundreds of Blazor demos, with which you can see all Telerik UI for Blazor components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for Blazor or ThemeBuilder.

Support & Learning Resources

Additional Resources

An error has occurred. This application may no longer respond until reloaded.