Component designed to add collapsible side content.

Left opened content
Main content
Right closed content

The sidebar remembers whether it was open and the width it was closed at, and restores the state after a page reload. On by default — use [useStateSaving]="false" to turn it off on a specific component.

Opened content
Toggle the sidebar and reload the page — it comes back the way it was left.

Nothing is persisted while opened is bound — a binding there means the application decides. A sidebar that should remember its own state is left uncontrolled and toggled through toggle() or the [ / ] shortcut.

clearSavedState() removes what is stored.

Keys, storage and expiry work the same for every component that persists — see Saving component state.

Key
Action
[Open/close left Sidebar
]Open/close right Sidebar
Suggestions for improvement
If you found a mistake or want to improve the article, create an issue on GitHub.