Sidenav
Overlayatlas-sidenavExamples
Side and over
mode="side" pushes the content; mode="over" floats above it with a backdrop.
Over the content, at the end edge
position="end" follows the text direction. In over mode the panel is a modal dialog: focus is trapped inside, Escape and the backdrop emit closed , and focus returns to the trigger.
API
Generated from the library source, so it always matches the code.
AtlasSidenavComponent atlas-sidenav
| Input | Type | Default | Description |
|---|---|---|---|
| open | boolean | false | closed to set it to false . |
| position | SidenavPosition | 'left' | left / right , or start / end to follow the text direction. |
| mode | SidenavMode | 'side' | side pushes the content and stays in the page (a landmark); over covers it as a modal dialog with a focus trap and Escape. |
| hasBackdrop | boolean | false | over panel; a click on it emits closed . |
| width | string | '16rem' | |
| ariaLabel | string | undefined | undefined | over mode, a complementary landmark in side mode). |
| class | string | '' | cn() ; yours win on conflicts. |
| Output | Payload | Description |
|---|---|---|
| closed | void | over panel (Escape, the backdrop): set open to false . |
Types
SidenavMode
type SidenavMode = 'over' | 'side'SidenavPosition
type SidenavPosition = 'left' | 'right' | 'start' | 'end'