[ 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 foldable layout that groups content in collapsible sections.",
   8      "example": {},
   9      "supports": {
  10          "anchor": true,
  11          "html": false,
  12          "align": [ "wide", "full" ],
  13          "background": {
  14              "backgroundImage": true,
  15              "backgroundSize": true,
  16              "gradient": true,
  17              "__experimentalDefaultControls": {
  18                  "backgroundImage": true
  19              }
  20          },
  21          "color": {
  22              "background": true,
  23              "gradients": true,
  24              "link": true,
  25              "heading": true,
  26              "button": true
  27          },
  28          "__experimentalBorder": {
  29              "color": true,
  30              "radius": true,
  31              "style": true,
  32              "width": true,
  33              "__experimentalDefaultControls": {
  34                  "color": true,
  35                  "radius": true,
  36                  "style": true,
  37                  "width": true
  38              }
  39          },
  40          "spacing": {
  41              "padding": true,
  42              "margin": [ "top", "bottom" ],
  43              "blockGap": true
  44          },
  45          "shadow": true,
  46          "layout": true,
  47          "ariaLabel": true,
  48          "interactivity": true,
  49          "typography": {
  50              "fontSize": true,
  51              "lineHeight": true,
  52              "__experimentalFontFamily": true,
  53              "__experimentalFontWeight": true,
  54              "__experimentalFontStyle": true,
  55              "__experimentalTextTransform": true,
  56              "__experimentalTextDecoration": true,
  57              "__experimentalLetterSpacing": true,
  58              "__experimentalDefaultControls": {
  59                  "fontSize": true
  60              }
  61          },
  62          "contentRole": true,
  63          "listView": true
  64      },
  65      "attributes": {
  66          "iconPosition": {
  67              "type": "string",
  68              "default": "right"
  69          },
  70          "showIcon": {
  71              "type": "boolean",
  72              "default": true
  73          },
  74          "autoclose": {
  75              "type": "boolean",
  76              "default": false
  77          },
  78          "headingLevel": {
  79              "type": "number",
  80              "default": 3
  81          },
  82          "levelOptions": {
  83              "type": "array"
  84          }
  85      },
  86      "providesContext": {
  87          "core/accordion-icon-position": "iconPosition",
  88          "core/accordion-show-icon": "showIcon",
  89          "core/accordion-heading-level": "headingLevel"
  90      },
  91      "allowedBlocks": [ "core/accordion-item" ],
  92      "textdomain": "default",
  93      "viewScriptModule": "@wordpress/block-library/accordion/view"
  94  }


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