Skip to content

Commit

Permalink
Clarify that not all blocks support nested content
Browse files Browse the repository at this point in the history
  • Loading branch information
noisysocks committed May 30, 2018
1 parent bbe03fe commit 920d7cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/block-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ useOnce: true,

* **Type:** `Array`

Blocks can be inserted into other blocks as nested content. Sometimes it is useful to restrict a block so that it is only available as a nested block. For example, you might want to allow an 'Add to Cart' block to only be available within a 'Product' block.
Blocks are able to be inserted into blocks that use [`InnerBlocks`](https://github.com/WordPress/gutenberg/blob/master/editor/components/inner-blocks/README.md) as nested content. Sometimes it is useful to restrict a block so that it is only available as a nested block. For example, you might want to allow an 'Add to Cart' block to only be available within a 'Product' block.

Setting `parent` lets a block require that it is only available when nested within the specified blocks.

Expand Down

0 comments on commit 920d7cc

Please sign in to comment.