[ 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          "textAlign": {
  22              "type": "string"
  23          },
  24          "url": {
  25              "type": "string",
  26              "source": "attribute",
  27              "selector": "a",
  28              "attribute": "href",
  29              "role": "content"
  30          },
  31          "title": {
  32              "type": "string",
  33              "source": "attribute",
  34              "selector": "a,button",
  35              "attribute": "title",
  36              "role": "content"
  37          },
  38          "text": {
  39              "type": "rich-text",
  40              "source": "rich-text",
  41              "selector": "a,button",
  42              "role": "content"
  43          },
  44          "linkTarget": {
  45              "type": "string",
  46              "source": "attribute",
  47              "selector": "a",
  48              "attribute": "target",
  49              "role": "content"
  50          },
  51          "rel": {
  52              "type": "string",
  53              "source": "attribute",
  54              "selector": "a",
  55              "attribute": "rel",
  56              "role": "content"
  57          },
  58          "placeholder": {
  59              "type": "string"
  60          },
  61          "backgroundColor": {
  62              "type": "string"
  63          },
  64          "textColor": {
  65              "type": "string"
  66          },
  67          "gradient": {
  68              "type": "string"
  69          },
  70          "width": {
  71              "type": "number"
  72          }
  73      },
  74      "supports": {
  75          "anchor": true,
  76          "splitting": true,
  77          "align": false,
  78          "alignWide": false,
  79          "color": {
  80              "__experimentalSkipSerialization": true,
  81              "gradients": true,
  82              "__experimentalDefaultControls": {
  83                  "background": true,
  84                  "text": true
  85              }
  86          },
  87          "typography": {
  88              "__experimentalSkipSerialization": [
  89                  "fontSize",
  90                  "lineHeight",
  91                  "fontFamily",
  92                  "fontWeight",
  93                  "fontStyle",
  94                  "textTransform",
  95                  "textDecoration",
  96                  "letterSpacing"
  97              ],
  98              "fontSize": true,
  99              "lineHeight": true,
 100              "__experimentalFontFamily": true,
 101              "__experimentalFontWeight": true,
 102              "__experimentalFontStyle": true,
 103              "__experimentalTextTransform": true,
 104              "__experimentalTextDecoration": true,
 105              "__experimentalLetterSpacing": true,
 106              "__experimentalWritingMode": true,
 107              "__experimentalDefaultControls": {
 108                  "fontSize": true
 109              }
 110          },
 111          "reusable": false,
 112          "shadow": {
 113              "__experimentalSkipSerialization": true
 114          },
 115          "spacing": {
 116              "__experimentalSkipSerialization": true,
 117              "padding": [ "horizontal", "vertical" ],
 118              "__experimentalDefaultControls": {
 119                  "padding": true
 120              }
 121          },
 122          "__experimentalBorder": {
 123              "color": true,
 124              "radius": true,
 125              "style": true,
 126              "width": true,
 127              "__experimentalSkipSerialization": true,
 128              "__experimentalDefaultControls": {
 129                  "color": true,
 130                  "radius": true,
 131                  "style": true,
 132                  "width": true
 133              }
 134          },
 135          "interactivity": {
 136              "clientNavigation": true
 137          }
 138      },
 139      "styles": [
 140          { "name": "fill", "label": "Fill", "isDefault": true },
 141          { "name": "outline", "label": "Outline" }
 142      ],
 143      "editorStyle": "wp-block-button-editor",
 144      "style": "wp-block-button",
 145      "selectors": {
 146          "root": ".wp-block-button .wp-block-button__link",
 147          "typography": {
 148              "writingMode": ".wp-block-button"
 149          }
 150      }
 151  }


Generated : Sat Feb 22 08:20:01 2025 Cross-referenced by PHPXref