Title: Buttons
Published: June 7, 2026
Last modified: October 14, 2026

---

# Buttons

## In this article

 * [Block Relationships](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-design/core-block-buttons/?output_format=md#block-relationships)
 * [Attributes](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-design/core-block-buttons/?output_format=md#attributes)
 * [Supports](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-design/core-block-buttons/?output_format=md#supports)
 * [Block Markup](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-design/core-block-buttons/?output_format=md#block-markup)
 * [Source](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-design/core-block-buttons/?output_format=md#source)

 Prompt visitors to take action with a group of button-style links.

 * **Name:** `core/buttons`
 * **Category:** [design](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-design/)
 * **API Version:** [3](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-api-versions/)
 * **Block Type:** [Static](https://developer.wordpress.org/block-editor/getting-started/fundamentals/static-dynamic-rendering/)(
   saved in post content)
 * **Keywords:** `link`

## 󠀁[Block Relationships](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-design/core-block-buttons/?output_format=md#block-relationships)󠁿

**[Allowed](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/#allowed-blocks)
inner blocks:**
 – [`core/button`](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-design/core-block-button/)

## 󠀁[Attributes](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-design/core-block-buttons/?output_format=md#attributes)󠁿

_Defined via the [`attributes`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-attributes/)
property in block.json._

_This block has no custom attributes._

## 󠀁[Supports](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-design/core-block-buttons/?output_format=md#supports)󠁿

_Defined via the [`supports`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/)
property in block.json._

 * [`anchor`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#anchor):`
   true`
 * [`align`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#align):`"
   wide"`, `"full"`
 * [`html`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#html):`
   false`
 * [`background`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#background):
    - `backgroundImage`: `true`
    - `backgroundSize`: `true`
    - `gradient`: `true`
 * [`color`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color):
    - [`gradients`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-gradients):`
      true`
    - [`text`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#color-text):`
      false`
 * [`spacing`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#spacing):
    - `blockGap`: `["horizontal","vertical"]`
    - `padding`: `true`
    - `margin`: `["top","bottom"]`
 * [`typography`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography):
    - [`fontSize`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography-fontsize):`
      true`
    - [`lineHeight`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#typography-lineheight):`
      true`
 * [`dimensions`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#dimensions):
    - `minHeight`: `true`
    - `minWidth`: `true`
 * [`layout`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#layout):
    - [`allowSwitching`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#layout-allowswitching):`
      false`
    - [`allowInheriting`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#layout-allowinheriting):`
      false`
    - [`default`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#layout-default):`{"
      type":"flex"}`
 * [`interactivity`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#interactivity):
    - `clientNavigation`: `true`
 * [`listView`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#listview):`
   true`
 * [`contentRole`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#contentrole):`
   true`
 * [`shadow`](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-supports/#shadow):`
   true`

## 󠀁[Block Markup](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-design/core-block-buttons/?output_format=md#block-markup)󠁿

This is a [**static block**](https://developer.wordpress.org/block-editor/getting-started/fundamentals/static-dynamic-rendering/).
The markup is saved directly in the post content.

    ```html
    <!-- wp:buttons {"align":"wide","layout":{"type":"flex","justifyContent":"center"}} -->
    <div class="wp-block-buttons alignwide">
        <!-- wp:button -->
        <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">My button 1</a></div>
        <!-- /wp:button -->

        <!-- wp:button -->
        <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">My button 2</a></div>
        <!-- /wp:button -->

        <!-- wp:button {"tagName":"a"} -->
        <div class="wp-block-button"><a class="wp-block-button__link wp-element-button">My button 3</a></div>
        <!-- /wp:button -->

        <!-- wp:button {"tagName":"button"} -->
        <div class="wp-block-button"><button type="button" class="wp-block-button__link wp-element-button">My button 4</button></div>
        <!-- /wp:button -->
    </div>
    <!-- /wp:buttons -->
    ```

## 󠀁[Source](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-design/core-block-buttons/?output_format=md#source)󠁿

 * [block.json](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/buttons/block.json)(
   [reference](https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/))
 * [Source directory](https://github.com/WordPress/gutenberg/tree/trunk/packages/block-library/src/buttons/)—
   browse the `edit` and `save` source files, `index.php`, and more.

First published

June 7, 2026

Last updated

October 14, 2026

Edit article

[ Improve it on GitHub: Buttons ](https://github.com/WordPress/gutenberg/edit/trunk/packages/block-library/src/buttons/README.md)

[  Previous: Button](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-design/core-block-button/)

[  Next: Column](https://developer.wordpress.org/block-editor/reference-guides/core-blocks/core-blocks-design/core-block-column/)