A side nav beside your content on wide screens. On small screens, its links move into the header menu. Add Side nav sections, links and dividers inside.
Live example
Side navigation is site chrome: it pins itself to the left edge of the screen, next to the header. An inline example here would sit on top of this page, so the screenshots below stand in for it.
How it renders

Dark mode you don’t have to build
Every block supports dark mode. Here is the Side nav block in the dark scheme.

Parameters
Everything the Side nav block accepts. Setting is the label you see in the block’s settings panel. Parameter is what the same value is called in code. Accepts is what you can put in it.
| Setting | Parameter | Type | Default | Accepts | What it does |
|---|---|---|---|---|---|
| Accessible name (aria-label) | ariaLabel | string | “Side navigation” | Any text | The accessible name screen readers announce for this landmark or control. |
| Show the side nav | mode | string | “persistent” | persistent, none | Shows the side navigation, or hides it. On small screens its links move into the header menu. |
| HTML ID | id | string | “side-nav” | An element ID | The ID a toggle control uses to open and close this side nav. |
Inside it: Side nav section
A group of side navigation links that opens and closes, with an optional heading.
| Setting | Parameter | Type | Default | Accepts | What it does |
|---|---|---|---|---|---|
| Typed on the block | title | string | empty | Any text | The section heading. |
| Icon | iconName | string | empty | A Carbon icon name | An optional Carbon icon next to the section title. |
Inside it: Side nav link
One link in the side navigation.
| Setting | Parameter | Type | Default | Accepts | What it does |
|---|---|---|---|---|---|
| Typed on the block | text | string | “Link” | Any text | The visible text. |
| Link URL | href | string | “#” | A URL | The URL this points to. |
| Icon | iconName | string | empty | A Carbon icon name | The name of a Carbon icon, for example download. The icon is decorative, so the text must still carry the meaning. |
| Always mark as the current page | isCurrent | boolean | false | true or false | Marks this item as the current page, visually and with aria-current. |
| Highlight this link when | matchMode | string | “exact” | exact, prefix | How the current page is detected from the URL: exact match, or prefix so child pages count too. |
Inside it: Side nav divider
A line between groups of side navigation links.
It has no parameters of its own.
Accessibility parameters, on this and every AWT block
Every AWT block has an Accessibility panel in its settings. Each control in it becomes a real HTML attribute on the block’s outer element:
| Setting | Parameter | What it does |
|---|---|---|
| Accessible name (aria-label) | ariaLabel | Becomes aria-label on the block’s outer element. Replaces the accessible name screen readers announce. Set it only when the visible label is not enough. |
| Described by (aria-describedby) | ariaDescribedby | Becomes aria-describedby. Point it at the ID of another element on the page whose text adds a longer description. |
| Labelled by (aria-labelledby) | ariaLabelledby | Becomes aria-labelledby. Point it at the ID of another element whose text should become this block’s accessible name. |
| Role | awtRole | Becomes the role attribute. Overrides the element’s ARIA role. The list offers only roles that suit the element. |
| Language (lang) | awtLang | Becomes the lang attribute. Set it when this block’s content is in a different language from the page, as a BCP-47 code like “fr”. |