Skip to content

Sidenav

Overlay

A side panel that sits beside the content or slides over it, with an optional backdrop.

atlas-sidenav

Examples

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

InputTypeDefaultDescription
open booleanfalse Whether the panel is shown. Controlled: handle closed to set it to false .
position SidenavPosition'left' Edge the panel is attached to: 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 booleanfalse Shows a backdrop behind an over panel; a click on it emits closed .
width string'16rem' Width of the panel, any CSS length.
ariaLabel string | undefinedundefined Accessible name of the panel (a modal dialog in over mode, a complementary landmark in side mode).
class string'' Extra CSS classes, merged with the component's own through cn() ; yours win on conflicts.
OutputPayloadDescription
closedvoid Emits when the user asks to close an over panel (Escape, the backdrop): set open to false .

Types

SidenavMode

Valid sidenav display modes

type SidenavMode = 'over' | 'side'

SidenavPosition

Valid sidenav position values

type SidenavPosition = 'left' | 'right' | 'start' | 'end'