[ 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          "isSearchFieldHidden": {
  47              "type": "boolean",
  48              "default": false
  49          }
  50      },
  51      "supports": {
  52          "align": [ "left", "center", "right" ],
  53          "color": {
  54              "gradients": true,
  55              "__experimentalSkipSerialization": true,
  56              "__experimentalDefaultControls": {
  57                  "background": true,
  58                  "text": true
  59              }
  60          },
  61          "interactivity": true,
  62          "typography": {
  63              "__experimentalSkipSerialization": true,
  64              "__experimentalSelector": ".wp-block-search__label, .wp-block-search__input, .wp-block-search__button",
  65              "fontSize": true,
  66              "lineHeight": true,
  67              "__experimentalFontFamily": true,
  68              "__experimentalFontWeight": true,
  69              "__experimentalFontStyle": true,
  70              "__experimentalTextTransform": true,
  71              "__experimentalTextDecoration": true,
  72              "__experimentalLetterSpacing": true,
  73              "__experimentalDefaultControls": {
  74                  "fontSize": true
  75              }
  76          },
  77          "__experimentalBorder": {
  78              "color": true,
  79              "radius": true,
  80              "width": true,
  81              "__experimentalSkipSerialization": true,
  82              "__experimentalDefaultControls": {
  83                  "color": true,
  84                  "radius": true,
  85                  "width": true
  86              }
  87          },
  88          "spacing": {
  89              "margin": true
  90          },
  91          "html": false
  92      },
  93      "editorStyle": "wp-block-search-editor",
  94      "style": "wp-block-search"
  95  }


Generated : Sat Nov 23 08:20:01 2024 Cross-referenced by PHPXref