[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/blocks/button/ -> block.json (source)

   1  {
   2      "$schema": "https://schemas.wp.org/trunk/block.json",
   3      "apiVersion": 3,
   4      "name": "core/button",
   5      "title": "Button",
   6      "category": "design",
   7      "parent": [ "core/buttons" ],
   8      "description": "Prompt visitors to take action with a button-style link.",
   9      "keywords": [ "link" ],
  10      "textdomain": "default",
  11      "attributes": {
  12          "tagName": {
  13              "type": "string",
  14              "enum": [ "a", "button" ],
  15              "default": "a"
  16          },
  17          "type": {
  18              "type": "string",
  19              "default": "button"
  20          },
  21          "url": {
  22              "type": "string",
  23              "source": "attribute",
  24              "selector": "a",
  25              "attribute": "href",
  26              "role": "content"
  27          },
  28          "title": {
  29              "type": "string",
  30              "source": "attribute",
  31              "selector": "a,button",
  32              "attribute": "title",
  33              "role": "content"
  34          },
  35          "text": {
  36              "type": "rich-text",
  37              "source": "rich-text",
  38              "selector": "a,button",
  39              "role": "content"
  40          },
  41          "linkTarget": {
  42              "type": "string",
  43              "source": "attribute",
  44              "selector": "a",
  45              "attribute": "target",
  46              "role": "content"
  47          },
  48          "rel": {
  49              "type": "string",
  50              "source": "attribute",
  51              "selector": "a",
  52              "attribute": "rel",
  53              "role": "content"
  54          },
  55          "placeholder": {
  56              "type": "string"
  57          },
  58          "backgroundColor": {
  59              "type": "string"
  60          },
  61          "textColor": {
  62              "type": "string"
  63          },
  64          "gradient": {
  65              "type": "string"
  66          },
  67          "width": {
  68              "type": "number"
  69          }
  70      },
  71      "supports": {
  72          "anchor": true,
  73          "splitting": true,
  74          "align": false,
  75          "alignWide": false,
  76          "color": {
  77              "__experimentalSkipSerialization": true,
  78              "gradients": true,
  79              "__experimentalDefaultControls": {
  80                  "background": true,
  81                  "text": true
  82              }
  83          },
  84          "typography": {
  85              "__experimentalSkipSerialization": [
  86                  "fontSize",
  87                  "lineHeight",
  88                  "textAlign",
  89                  "fontFamily",
  90                  "fontWeight",
  91                  "fontStyle",
  92                  "textTransform",
  93                  "textDecoration",
  94                  "letterSpacing"
  95              ],
  96              "fontSize": true,
  97              "lineHeight": true,
  98              "textAlign": true,
  99              "__experimentalFontFamily": true,
 100              "__experimentalFontWeight": true,
 101              "__experimentalFontStyle": true,
 102              "__experimentalTextTransform": true,
 103              "__experimentalTextDecoration": true,
 104              "__experimentalLetterSpacing": true,
 105              "__experimentalWritingMode": true,
 106              "__experimentalDefaultControls": {
 107                  "fontSize": true
 108              }
 109          },
 110          "reusable": false,
 111          "shadow": {
 112              "__experimentalSkipSerialization": true
 113          },
 114          "spacing": {
 115              "__experimentalSkipSerialization": true,
 116              "padding": [ "horizontal", "vertical" ],
 117              "__experimentalDefaultControls": {
 118                  "padding": true
 119              }
 120          },
 121          "__experimentalBorder": {
 122              "color": true,
 123              "radius": true,
 124              "style": true,
 125              "width": true,
 126              "__experimentalSkipSerialization": true,
 127              "__experimentalDefaultControls": {
 128                  "color": true,
 129                  "radius": true,
 130                  "style": true,
 131                  "width": true
 132              }
 133          },
 134          "interactivity": {
 135              "clientNavigation": true
 136          }
 137      },
 138      "styles": [
 139          { "name": "fill", "label": "Fill", "isDefault": true },
 140          { "name": "outline", "label": "Outline" }
 141      ],
 142      "editorStyle": "wp-block-button-editor",
 143      "style": "wp-block-button",
 144      "selectors": {
 145          "root": ".wp-block-button .wp-block-button__link",
 146          "typography": {
 147              "writingMode": ".wp-block-button"
 148          }
 149      }
 150  }


Generated : Thu Jan 29 08:20:07 2026 Cross-referenced by PHPXref