[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

   1  {
   2      "apiVersion": 3,
   3      "$schema": "https://schemas.wp.org/trunk/block.json",
   4      "name": "core/icon",
   5      "title": "Icon",
   6      "category": "media",
   7      "description": "Insert an SVG icon.",
   8      "keywords": [ "icon", "svg" ],
   9      "textdomain": "default",
  10      "attributes": {
  11          "icon": {
  12              "type": "string",
  13              "role": "content"
  14          },
  15          "flipHorizontal": {
  16              "type": "boolean",
  17              "default": false
  18          },
  19          "flipVertical": {
  20              "type": "boolean",
  21              "default": false
  22          },
  23          "rotation": {
  24              "type": "number",
  25              "default": 0
  26          }
  27      },
  28      "supports": {
  29          "anchor": true,
  30          "ariaLabel": {
  31              "__experimentalSkipSerialization": true
  32          },
  33          "align": [ "left", "center", "right" ],
  34          "background": {
  35              "backgroundImage": true,
  36              "backgroundSize": true,
  37              "gradient": true,
  38              "__experimentalSkipSerialization": true
  39          },
  40          "html": false,
  41          "color": {
  42              "__experimentalSkipSerialization": true,
  43              "__experimentalDefaultControls": {
  44                  "background": true,
  45                  "text": true
  46              }
  47          },
  48          "interactivity": {
  49              "clientNavigation": true
  50          },
  51          "shadow": {
  52              "__experimentalSkipSerialization": true
  53          },
  54          "__experimentalBorder": {
  55              "color": true,
  56              "radius": true,
  57              "style": true,
  58              "width": true,
  59              "__experimentalSkipSerialization": true,
  60              "__experimentalDefaultControls": {
  61                  "color": false,
  62                  "radius": false,
  63                  "style": false,
  64                  "width": false
  65              }
  66          },
  67          "spacing": {
  68              "padding": true,
  69              "margin": true,
  70              "__experimentalSkipSerialization": [ "padding" ],
  71              "__experimentalDefaultControls": {
  72                  "margin": false,
  73                  "padding": false
  74              }
  75          },
  76          "dimensions": {
  77              "width": true,
  78              "minWidth": true,
  79              "minHeight": true,
  80              "__experimentalSkipSerialization": [
  81                  "width",
  82                  "minWidth",
  83                  "minHeight"
  84              ],
  85              "__experimentalDefaultControls": {
  86                  "width": true
  87              }
  88          }
  89      },
  90      "selectors": {
  91          "root": ".wp-block-icon svg",
  92          "css": ".wp-block-icon",
  93          "shadow": ".wp-block-icon svg",
  94          "spacing": {
  95              "margin": ".wp-block-icon"
  96          }
  97      },
  98      "style": "wp-block-icon",
  99      "editorStyle": "wp-block-icon-editor"
 100  }


Generated : Sun Oct 25 08:20:35 2026 Cross-referenced by PHPXref