[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

   1  {
   2      "$schema": "https://schemas.wp.org/trunk/block.json",
   3      "apiVersion": 3,
   4      "name": "core/search",
   5      "title": "Search",
   6      "category": "widgets",
   7      "description": "Help visitors find your content.",
   8      "keywords": [ "find" ],
   9      "textdomain": "default",
  10      "attributes": {
  11          "label": {
  12              "type": "string",
  13              "role": "content"
  14          },
  15          "showLabel": {
  16              "type": "boolean",
  17              "default": true
  18          },
  19          "placeholder": {
  20              "type": "string",
  21              "default": "",
  22              "role": "content"
  23          },
  24          "width": {
  25              "type": "number"
  26          },
  27          "widthUnit": {
  28              "type": "string"
  29          },
  30          "buttonText": {
  31              "type": "string",
  32              "role": "content"
  33          },
  34          "buttonPosition": {
  35              "type": "string",
  36              "default": "button-outside"
  37          },
  38          "buttonUseIcon": {
  39              "type": "boolean",
  40              "default": false
  41          },
  42          "query": {
  43              "type": "object",
  44              "default": {}
  45          },
  46          "tagName": {
  47              "type": "string",
  48              "default": ""
  49          }
  50      },
  51      "supports": {
  52          "anchor": true,
  53          "align": [ "left", "center", "right" ],
  54          "color": {
  55              "gradients": true,
  56              "__experimentalSkipSerialization": true,
  57              "__experimentalDefaultControls": {
  58                  "background": true,
  59                  "text": true
  60              }
  61          },
  62          "interactivity": true,
  63          "typography": {
  64              "__experimentalSkipSerialization": true,
  65              "__experimentalSelector": ".wp-block-search__label, .wp-block-search__input, .wp-block-search__button",
  66              "fontSize": true,
  67              "lineHeight": true,
  68              "__experimentalFontFamily": true,
  69              "__experimentalFontWeight": true,
  70              "__experimentalFontStyle": true,
  71              "__experimentalTextTransform": true,
  72              "__experimentalTextDecoration": true,
  73              "__experimentalLetterSpacing": true,
  74              "__experimentalDefaultControls": {
  75                  "fontSize": true
  76              }
  77          },
  78          "__experimentalBorder": {
  79              "color": true,
  80              "radius": true,
  81              "width": true,
  82              "__experimentalSkipSerialization": true,
  83              "__experimentalDefaultControls": {
  84                  "color": true,
  85                  "radius": true,
  86                  "width": true
  87              }
  88          },
  89          "spacing": {
  90              "margin": true
  91          },
  92          "html": false
  93      },
  94      "editorStyle": "wp-block-search-editor",
  95      "style": "wp-block-search",
  96      "selectors": {
  97          "color": ".wp-block-search .wp-block-search__button, .wp-block-search.wp-block-search__no-button .wp-block-search__input",
  98          "border": ".wp-block-search.wp-block-search__button-outside .wp-block-search__input, .wp-block-search.wp-block-search__button-outside .wp-block-search__button, .wp-block-search.wp-block-search__no-button .wp-block-search__input, .wp-block-search.wp-block-search__button-only .wp-block-search__input, .wp-block-search.wp-block-search__button-only .wp-block-search__button, .wp-block-search.wp-block-search__button-inside .wp-block-search__inside-wrapper"
  99      }
 100  }


Generated : Mon Jul 27 08:20:18 2026 Cross-referenced by PHPXref