The Sidebar component(s) we use in StudioCMS, created for maximum customizability. Due to size constraints, this page will only showcase the code, not the component itself. Check out the StudioCMS dashboard to see how they look.
A more complex version with two panes, both with different breakpoints.
Due to the more complex nature of the double sidebar, it’s best to have the following setup:
On screens larger than 1200px, don’t show any toggles and show the sidebar entirely.
On screens smaller than 1200px and larger than 840px, show only one toggle to switch between inner and outer sidebar.
On screens smaller than 840px, display a toggle to show the outer navbar when it’s hidden and a toggle to switch between outer and inner when it’s shown.
To help you with managing the sidebar state, the following methods are exposed from the helper: