Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 1.39 KB

File metadata and controls

31 lines (18 loc) · 1.39 KB

List view

The ListView component provides an overview of the hierarchical structure of all blocks in the editor. The blocks are presented vertically one below the other.

Blocks that have child blocks (such as group or column blocks) are presented with the parent at the top and the nested children below.

In addition to presenting the structure of the blocks in the editor, the ListView component lets users navigate to each block by clicking on its line in the hierarchy tree. Multiple blocks at the same level of nesting can be selected by holding down the SHIFT key and clicking blocks within the list.

List view View of a group list view

Table of contents

  1. Development guidelines
  2. Related components

Development guidelines

Usage

Renders a list view with default syles.

import { ListView } from '@wordpress/block-editor';

const MyNavigation = () => <ListView />;

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 in the components tree.