Button Group

Join related buttons into a single group of actions.

Live preview
Interact with the component to see results here.
View code
HTML
<sy-button-group variant="default" size="medium">
  <sy-button>Previous</sy-button>
  <sy-button>Current</sy-button>
  <sy-button>Next</sy-button>
</sy-button-group>

Usage guide

#

Use to group related actions, such as previous/next or alignment tools. To store a single selected value, use button-style Radio instead.

Shared group settings
size and variant are passed to child Buttons. Use vertical for a vertical layout.
Individual button settings
Set disabled and tooltip on each Button.

Feature examples

#

Choose a feature from 4 topics. Explore property settings, method calls, event results, and slot layouts through live examples and code.

Usage examples · Overview

Try the selected example. Topics with multiple configurations let you switch between detailed examples.

View code
HTML
Loading the example.

Property · Size

See how settings change appearance and behavior.

View code
HTML
Loading the example.

Property · Variant

See how settings change appearance and behavior.

View code
HTML
Loading the example.

Property · Vertical

See how settings change appearance and behavior.

View code
HTML
Loading the example.

API reference

#

Hover over a name or focus it with the keyboard to see the code. On touch screens, tap the name.

<sy-button-group>

Properties

Attribute / PropertyTypeDefaultDescription
booleanfalseArrange vertically.
'default' | 'primary' | 'secondary' | 'borderless''default'Component display style.
'small' | 'medium' | 'large''medium'Component size.

Slots

SlotDescription
Component body or child items.