diff --git a/packages/block-library/src/query/index.js b/packages/block-library/src/query/index.js index 8d82391923603..0a757b8ee11e9 100644 --- a/packages/block-library/src/query/index.js +++ b/packages/block-library/src/query/index.js @@ -19,6 +19,46 @@ export { metadata, name }; export const settings = { icon, edit, + example: { + viewportWidth: 650, + attributes: { + namespace: 'core/posts-list', + query: { + perPage: 4, + pages: 1, + offset: 0, + postType: 'post', + order: 'desc', + orderBy: 'date', + author: '', + search: '', + sticky: 'exclude', + inherit: false, + }, + }, + innerBlocks: [ + { + name: 'core/post-template', + attributes: { + layout: { + type: 'grid', + columnCount: 2, + }, + }, + innerBlocks: [ + { + name: 'core/post-title', + }, + { + name: 'core/post-date', + }, + { + name: 'core/post-excerpt', + }, + ], + }, + ], + }, save, variations, deprecated,