Skip to content

Button Group

Displays a set of related buttons in a horizontal or vertical arrangement.

First release: 1.0.0 Latest update: July 1, 2025 Current version: 1.0.0

React Angular Vue Svelte HTML

Import

import { PlusButton Group } from '@plusui/react';
import { PlusButton GroupComponent } from '@plusui/angular';
import { PlusButton Group } from '@plusui/vue';
import PlusButton Group from '@plusui/svelte';
<script src="https://cdn.jsdelivr.net/npm/@plusui/core"></script>

Package

@plusui/react
@plusui/angular
@plusui/vue
@plusui/svelte
@plusui/core

Docs

Changelog

Button group Changelog

Recent changes and updates for the button group component

📝

No entries found

No changelog entries found for button group component.

The Button Group component organizes multiple related buttons into a single cohesive unit, providing a clear visual relationship between similar actions. This component is useful for creating segmented controls, toolbars, and pagination interfaces.

Button Group - anatomy

Create a button group by wrapping multiple plus-button components within a plus-button-group.

LeftMiddleRight
Show code

Use the override property to make all buttons in the group inherit the properties defined on the button group. This ensures visual consistency between all buttons.

SaveCancelResetSaveCancelReset
Show code

Use the orientation property to arrange buttons horizontally (default) or vertically.

DayWeekMonthDayWeekMonth
Show code

Button group can control the visual style and color of all its buttons when using the override property.

CutCopyPasteCutCopyPasteCutCopyPaste
Show code

Control the size of all buttons within the group using the size property. This ensures consistent sizing across the entire group.

Button 1Button 2Button 1Button 2Button 1Button 2
Show code

Control the state of all buttons in the group with the disabled and loading properties.

NormalButtonsNormalButtonsNormalButtonsNormalButtons
Show code
Button Group - layout spacing Button Group - light & dark mode
  • Keyboard Behavior:
    • Users can navigate between buttons using the Tab key.
    • Each button can be activated using Enter or Space.
  • Screen Reader:
    • The button group has role="group" to indicate to assistive technologies that these buttons are related.
  • Required Developer Actions:
    • Ensure that button text is descriptive and clearly indicates its action.
    • Consider adding an additional aria-label attribute to the button group if the purpose of the group is not clear from button text alone.
NameTypeDefaultDescriptionRequired
orientation'horizontal' | 'vertical''horizontal'The orientation of the button group.No
overridebooleantrueWhen true, button group properties override child button properties.No
kind'filled' | 'outlined' | 'dashed' | 'text''filled'The visual style of buttons when override is true.No
status'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info''default'The color variant of buttons when override is true.No
size'sm' | 'md' | 'lg''md'Size of all buttons in the group when override is true.No
disabledbooleanfalseDisables all buttons in the group when override is true.No
loadingbooleanfalseShows loading state for all buttons when override is true.No
NameDescription
(default)Container for button elements.
PartDescription
baseThe component’s base wrapper.
NameDescription
--button-group-gapGap between buttons in the group (default is 0).

Join the Community

Plus UI is built by the community. Join us on our platforms to contribute, get help, and stay up to date.