Sidebar
The Sidebar screen is used to build your block’s sidebar. It works the same as the editor and front-end views but without the requirement of having a root-level element.
Adding Panels
To add a collapsible panel to your block’s sidebar, use the Panel component. Nest elements and components under the Panel component to display them within the panel.