Trusted by the world’s leading companies
Overview
The Blazor Button Group is a series of buttons aligned vertically or horizontally. It has several built-in features such as predefined styles, selection, nesting, rounded corners, RTL, and UI customization.
Orientation
Align the Blazor button group component either in vertical or horizontal orientation.
Selection
Based on the type of selection, you can select one or more buttons from a group.
Single selection
Select one button from a group.
Multiselection
Select one or more buttons from a group.
Split and Drop-down buttons
Drop-down and split buttons in the Blazor Button Group component let you nest buttons.
Predefined styles
Several predefined styles of button are available in the Blazor button group:
- Primary
- Success
- Info
- Warning
- Danger
Rounded button group
Take advantage of CSS styling to give button corners a rounded look.
Multicolor buttons
Differentiate each button in a group with different colors based on the actions performed with them.
Customization
Customize the Blazor Button Groups with icons and outline. The size of the button can be changed. You can also disable a particular button or all of them.
Accessibility
- Fully supports WAI-ARIA accessibility to work with screen readers and assistive devices.
- Follows WAI-ARIA best practices for implementing keyboard interaction.
- Follows WCAG 2.0standards in the design of the UI element visuals such as foreground color, background color, line spacing, text, and images.
- Supports right-to-left (RTL) text direction for users working in languages like Hebrew, Arabic, and Persian.
Built-in themes
The Blazor Button Group supports several built-in themes such as Tailwind CSS, Bootstrap 5, Bootstrap 4, Bootstrap, Material, Fabric, Fluent, and high contrast. Users can customize one of these built-in themes or create new themes to achieve their desired look and feel by simply overriding SASS variables or using our Theme Studio application.
Blazor Button Group Code Example
Easily get started with the Blazor Button Group using a few simple lines of C# code, as demonstrated below. Also, explore our Blazor Button Group Example, that shows you how to render and configure the button group in Blazor.
@using Syncfusion.Blazor.SplitButtons
<div>
<div class="row">
<p class="h5">Single selection</p>
<SfButtonGroup Mode="SelectionMode.Single">
<ButtonGroupButton @bind-Selected="@leftSelected">Left</ButtonGroupButton>
<ButtonGroupButton @bind-Selected="@centerSelected">Center</ButtonGroupButton>
<ButtonGroupButton @bind-Selected="@rightSelected">Right</ButtonGroupButton>
</SfButtonGroup>
</div>
<div class="row">
<p class="h5">Multiple selection</p>
<SfButtonGroup Mode="SelectionMode.Multiple">
<ButtonGroupButton @bind-Selected="@boldSelected">Bold</ButtonGroupButton>
<ButtonGroupButton @bind-Selected="@italicSelected">Italic</ButtonGroupButton>
<ButtonGroupButton @bind-Selected="@underlineSelected">Underline</ButtonGroupButton>
</SfButtonGroup>
</div>
</div>
@code {
private bool boldSelected = true;
private bool italicSelected;
private bool underlineSelected;
private bool leftSelected;
private bool centerSelected;
private bool rightSelected;
}Other supported frameworks
Button Group is also available in Angular, React, Vue and JavaScript frameworks that are built from their own TypeScript libraries. Check out the different Button Group platforms from the links below,
Not sure how to create your first Blazor Button Group? Our documentation can help.
I’d love to read it nowBlazor Components – 145+ UI and DataViz Components
Frequently Asked Questions
Why should you choose Syncfusion Blazor Button Group?
Selection of one or more options from predefined choices with single or multiple selection modes.
Support for nesting with a dropdown menu and split button.
- Industry-standard themes are included: Material, Fabric, and Bootstrap.
- Simple configuration and API.
- Supports all modern browsers.
- Touch friendly and responsive UI.
- One of the best Blazor Button group in the market that offers feature-rich UI to interact with the software.
Extensive demos, documentation and videos to learn quickly and get started with Blazor Button group.
Where can I find the Syncfusion Blazor Button Group demo?
You can find our Blazor Button Group demo here.
Can I download and utilize the Syncfusion Blazor Button Group for free?
No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue, 5 or fewer developers, and 10 or fewer total employees.
How do I get started with Syncfusion Blazor Button Group?
A good place to start would be our comprehensive getting started documentation.
Our Customers Love Us
Here are some of their experiences.
Awards
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion® is proud to hold the following industry awards.