From 78e961d7d080315bf18fb09322741c2b083dc89d Mon Sep 17 00:00:00 2001 From: Sainath Poojary <53347682+SainathPoojary@users.noreply.github.com> Date: Fri, 3 Jan 2025 19:00:05 +0530 Subject: [PATCH] BlockInspector: Add showNoBlockSelectedMessage prop documentation. (#68444) * BlockInspector: Add showNoBlockSelectedMessage prop documentation. * BlockInspector: Adjust Markdown list spacing for consistency Co-authored-by: SainathPoojary Co-authored-by: t-hamano --- .../src/components/block-inspector/README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/block-editor/src/components/block-inspector/README.md b/packages/block-editor/src/components/block-inspector/README.md index 4c2fd2a06a61b..e6d7811ffe3a2 100644 --- a/packages/block-editor/src/components/block-inspector/README.md +++ b/packages/block-editor/src/components/block-inspector/README.md @@ -16,6 +16,16 @@ import { BlockInspector } from '@wordpress/block-editor'; const MyBlockInspector = () => ; ``` +### Props + +#### showNoBlockSelectedMessage + +Whether to display a "No block selected" message when no block is selected. + +- Type: `boolean` +- Required: No +- Default: `true` + ## Related components Block Editor components are components that can be used to compose the UI of your block editor. Thus, they can only be used under a [BlockEditorProvider](https://github.com/WordPress/gutenberg/blob/HEAD/packages/block-editor/src/components/provider/README.md) in the components tree.