# Button Group [component-header:sl-button-group] Button groups can be used to group related buttons into sections. ```html preview Left Center Right ``` ## Examples ### Button Sizes All button sizes are supported, but avoid mixing sizes within the same button group. ```html preview Left Center Right

Left Center Right

Left Center Right ``` ### Theme Buttons Theme buttons are supported through the button's `type` attribute. ```html preview Left Center Right

Left Center Right

Left Center Right

Left Center Right

Left Center Right ``` ### Pill Buttons Pill buttons are supported through the button's `pill` attribute. ```html preview Left Center Right

Left Center Right

Left Center Right ``` ### Dropdowns in Button Groups Dropdowns can be placed inside button groups as long as the trigger is an `` element. ```html preview Button Button Dropdown Item 1 Item 2 Item 3 ``` ### Split Buttons Create a split button using a button and a dropdown. ```html preview Save Save Save as… Save all ``` ### Tooltips in Button Groups Buttons can be wrapped in tooltips to provide more detail when the user interacts with them. ```html preview Left Center Right ``` ### Toolbar Example Create interactive toolbars with button groups. ```html preview
``` [component-metadata:sl-button-group]