[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

   1  {
   2      "$schema": "https://schemas.wp.org/trunk/block.json",
   3      "apiVersion": 3,
   4      "name": "core/accordion",
   5      "title": "Accordion",
   6      "category": "design",
   7      "description": "Displays a group of accordion headings and associated expandable content.",
   8      "example": {},
   9      "supports": {
  10          "anchor": true,
  11          "html": false,
  12          "align": [ "wide", "full" ],
  13          "background": {
  14              "backgroundImage": true,
  15              "backgroundSize": true,
  16              "__experimentalDefaultControls": {
  17                  "backgroundImage": true
  18              }
  19          },
  20          "color": {
  21              "background": true,
  22              "gradients": true
  23          },
  24          "__experimentalBorder": {
  25              "color": true,
  26              "radius": true,
  27              "style": true,
  28              "width": true,
  29              "__experimentalDefaultControls": {
  30                  "color": true,
  31                  "radius": true,
  32                  "style": true,
  33                  "width": true
  34              }
  35          },
  36          "spacing": {
  37              "padding": true,
  38              "margin": [ "top", "bottom" ],
  39              "blockGap": true
  40          },
  41          "shadow": true,
  42          "layout": true,
  43          "ariaLabel": true,
  44          "interactivity": true,
  45          "typography": {
  46              "fontSize": true,
  47              "lineHeight": true,
  48              "__experimentalFontFamily": true,
  49              "__experimentalFontWeight": true,
  50              "__experimentalFontStyle": true,
  51              "__experimentalTextTransform": true,
  52              "__experimentalTextDecoration": true,
  53              "__experimentalLetterSpacing": true,
  54              "__experimentalDefaultControls": {
  55                  "fontSize": true
  56              }
  57          },
  58          "contentRole": true
  59      },
  60      "attributes": {
  61          "iconPosition": {
  62              "type": "string",
  63              "default": "right"
  64          },
  65          "showIcon": {
  66              "type": "boolean",
  67              "default": true
  68          },
  69          "autoclose": {
  70              "type": "boolean",
  71              "default": false
  72          },
  73          "headingLevel": {
  74              "type": "number",
  75              "default": 3
  76          },
  77          "levelOptions": {
  78              "type": "array"
  79          }
  80      },
  81      "providesContext": {
  82          "core/accordion-icon-position": "iconPosition",
  83          "core/accordion-show-icon": "showIcon",
  84          "core/accordion-heading-level": "headingLevel"
  85      },
  86      "allowedBlocks": [ "core/accordion-item" ],
  87      "textdomain": "default",
  88      "viewScriptModule": "@wordpress/block-library/accordion/view"
  89  }


Generated : Sat Oct 25 08:20:05 2025 Cross-referenced by PHPXref