Skip to content

Commit

Permalink
Add the block.json schema
Browse files Browse the repository at this point in the history
  • Loading branch information
michalczaplinski committed Jul 24, 2023
1 parent 961d8ec commit 4d259d5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions schemas/json/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,17 @@
"description": "ARIA-labels let you define an accessible label for elements. This property allows enabling the definition of an aria-label for the block, without exposing a UI field.",
"default": false
},
"behaviors": {
"description": "Behaviors are a way to add additional functionality to a block. They are defined as an object with a name and a set of properties. Curently, only one behavior is supported: lightbox.",
"additionalProperties": false,
"properties": {
"lightbox": {
"type": "boolean",
"description": "This property adds a 'lightbox' behavior to the block. It allows to open the block's content in a lightbox when clicking on it.",
"default": false
}
}
},
"className": {
"type": "boolean",
"description": "By default, the class .wp-block-your-block-name is added to the root element of your saved markup. This helps having a consistent mechanism for styling blocks that themes and plugins can rely on. If, for whatever reason, a class is not desired on the markup, this functionality can be disabled.",
Expand Down

0 comments on commit 4d259d5

Please sign in to comment.