@gechiui/block-editor
Version:
41 lines (23 loc) • 1.37 kB
Markdown
Block parent selector component displays the hierarchy of the current block selection as a single icon to "go up" a level. The parent selector icon appears when hovering over the icon of the selected block. In addition, it appears only if the selected block in question has a parent.
A click on the selector triggers the selection of the parent block.
In practice the BlockParentSelector component renders a <ToolbarButton /> component that contains the parent selector icon.

1. [Development guidelines](
2. [Related components](
Renders block parent selector icon in a <ToolbarButton /> component.
```jsx
import { BlockParentSelector } from '@gechiui/block-editor';
const MyBlockParentSelector = () => (
<BlockParentSelector clientIds={ blockClientIds } />
);
```
Blocks IDs
- Type: `Array`
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/GeChiUI/gutenberg/blob/HEAD/packages/block-editor/src/components/provider/README.md) in the components tree.