[ 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      },
  68      "supports": {
  69          "anchor": true,
  70          "splitting": true,
  71          "align": false,
  72          "alignWide": false,
  73          "background": {
  74              "backgroundImage": true,
  75              "backgroundSize": true,
  76              "gradient": true,
  77              "__experimentalSkipSerialization": true
  78          },
  79          "color": {
  80              "__experimentalSkipSerialization": true,
  81              "gradients": true,
  82              "__experimentalDefaultControls": {
  83                  "background": true,
  84                  "text": true
  85              }
  86          },
  87          "dimensions": {
  88              "width": true,
  89              "__experimentalSkipSerialization": [ "width" ],
  90              "__experimentalDefaultControls": {
  91                  "width": true
  92              }
  93          },
  94          "typography": {
  95              "__experimentalSkipSerialization": [
  96                  "fontSize",
  97                  "lineHeight",
  98                  "textAlign",
  99                  "fontFamily",
 100                  "fontWeight",
 101                  "fontStyle",
 102                  "textTransform",
 103                  "textDecoration",
 104                  "letterSpacing"
 105              ],
 106              "fontSize": true,
 107              "lineHeight": true,
 108              "textAlign": true,
 109              "__experimentalFontFamily": true,
 110              "__experimentalFontWeight": true,
 111              "__experimentalFontStyle": true,
 112              "__experimentalTextTransform": true,
 113              "__experimentalTextDecoration": true,
 114              "__experimentalLetterSpacing": true,
 115              "__experimentalWritingMode": true,
 116              "__experimentalDefaultControls": {
 117                  "fontSize": true
 118              }
 119          },
 120          "reusable": false,
 121          "shadow": {
 122              "__experimentalSkipSerialization": true
 123          },
 124          "spacing": {
 125              "__experimentalSkipSerialization": true,
 126              "padding": [ "horizontal", "vertical" ],
 127              "__experimentalDefaultControls": {
 128                  "padding": true
 129              }
 130          },
 131          "__experimentalBorder": {
 132              "color": true,
 133              "radius": true,
 134              "style": true,
 135              "width": true,
 136              "__experimentalSkipSerialization": true,
 137              "__experimentalDefaultControls": {
 138                  "color": true,
 139                  "radius": true,
 140                  "style": true,
 141                  "width": true
 142              }
 143          },
 144          "interactivity": {
 145              "clientNavigation": true
 146          }
 147      },
 148      "styles": [
 149          { "name": "fill", "label": "Fill", "isDefault": true },
 150          { "name": "outline", "label": "Outline" }
 151      ],
 152      "editorStyle": "wp-block-button-editor",
 153      "style": "wp-block-button",
 154      "selectors": {
 155          "root": ".wp-block-button .wp-block-button__link",
 156          "typography": {
 157              "writingMode": ".wp-block-button"
 158          },
 159          "dimensions": {
 160              "root": ".wp-block-button",
 161              "width": ".wp-block-button"
 162          }
 163      }
 164  }


Generated : Wed Nov 4 08:20:38 2026 Cross-referenced by PHPXref