---
title: "ButtonGroup"
description: "Group of related buttons. Wraps the Polaris <s-button-group> web component."
canonical_url: "https://shopify.yan.ad/components/actions/button-group"
---
# ButtonGroup

> Group of related buttons. Wraps the Polaris <s-button-group> web component.

## Live preview

<polaris-preview example="button-group">



</polaris-preview>

## Props

<table>
<thead>
  <tr>
    <th>
      Prop
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Default
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        gap
      </code>
    </td>
    
    <td>
      <code>
        'base' | 'none'
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Gap between buttons
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        accessibilityLabel
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      —
    </td>
    
    <td>
      Accessible label
    </td>
  </tr>
</tbody>
</table>

## Slots

<table>
<thead>
  <tr>
    <th>
      Slot
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        default
      </code>
    </td>
    
    <td>
      Button children
    </td>
  </tr>
</tbody>
</table>

## Polaris Element

Renders as `<s-button-group>`. See [Polaris ButtonGroup docs](https://shopify.dev/docs/api/app-home/web-components/actions/button-group).


## Sitemap

See the full [sitemap](https://shopify.yan.ad/sitemap.md) for all pages.
