Skip to content

Commit

Permalink
Patterns: Document 'inserter' argument (#40425)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mamaduka committed Apr 18, 2022
1 parent d6387d7 commit 03fe456
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/reference-guides/block-api/block-patterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ The properties available for block patterns are:
- `keywords` (optional): An array of aliases or keywords that help users discover the pattern while searching.
- `viewportWidth` (optional): An integer specifying the intended width of the pattern to allow for a scaled preview of the pattern in the inserter.
- `blockTypes` (optional): An array of block types that the pattern is intended to be used with. Each value needs to be the declared block's `name`.
- `inserter` (optional): By default, all patterns will appear in the inserter. To hide a pattern so that it can only be inserted programmatically, set the `inserter` to `false`.

The following code sample registers a block pattern named 'my-plugin/my-awesome-pattern':

Expand Down

0 comments on commit 03fe456

Please sign in to comment.