Skip to content

Commit

Permalink
BlockInspector: Add showNoBlockSelectedMessage prop documentation. (W…
Browse files Browse the repository at this point in the history
…ordPress#68444)

* BlockInspector: Add showNoBlockSelectedMessage prop documentation.

* BlockInspector: Adjust Markdown list spacing for consistency

Co-authored-by: SainathPoojary <[email protected]>
Co-authored-by: t-hamano <[email protected]>
  • Loading branch information
3 people authored and bph committed Jan 8, 2025
1 parent a76fc4a commit e74deac
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/block-editor/src/components/block-inspector/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,16 @@ import { BlockInspector } from '@wordpress/block-editor';
const MyBlockInspector = () => <BlockInspector />;
```

### 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.

0 comments on commit e74deac

Please sign in to comment.