--- 
title: Side Navigation
description: Collapsible sidebar navigation
category: components
a1Full: true
alias: sidenav, side navigation, side menu
a1Light: true
a1Densities: true
group: Navigation

module: NxSidebarModule
components:
  - name: NxSidebarComponent
    selector: nx-sidebar
    inputs:
      - name: colorScheme
        desc: "Controls the visual color scheme of the sidebar.@deprecated The emphasis color scheme is deprecated. Use the default sidebar instead."
        default: input<NxSidebarColorScheme>('default')
        type: "InputSignal<'default' | 'emphasis'>"
      - name: resizeable
        desc: "If set to `true` this will enable dynamic resizing of the sidebar."
        type: "BooleanInput"
      - name: minWidth
        desc: "Sets the minimal width (in pixel) of the sidebar."
        type: "NumberInput"
      - name: maxWidth
        desc: "Sets the maximal width (in pixel) of the sidebar."
        type: "NumberInput"
      - name: resizeHandleAriaLabel
        desc: "This sets the accessibility label for the resize handle of the sidebar."
        type: "string"
    outputs:
      - name: widthChange
        desc: "Emits the new width of the sidebar on resize or on close/open event."
        type: "EventEmitter<number>"
    methods:
      - name: expand
        params:
          - name: expandedWidth
            type: number | undefined
        desc: "This will expand the sidebar to its full width."
        returnType: void
      - name: close
        params: 
        desc: "This will close the sidebar to its minimal width."
        returnType: void
      - name: toggle
        params: 
        desc: "This will close or expand the sidebar depending if it is expanded or closed."
        returnType: void
  - name: NxSidebarFooterComponent
    selector: nx-sidebar-footer
  - name: NxSidebarGroupComponent
    selector: nx-sidebar-group
    inputs:
      - name: label
        desc: "The group header. Screen readers announce it as the name of the group."
        default: input<string>()
        type: "InputSignal<string | undefined>"
  - name: NxSidebarToggleComponent
    selector: button[nxSidebarToggle]
    methods:
      - name: toggle
        params: 
        returnType: void

---
# Overview
The `<nx-sidebar>` provides a collapsible container for side content (often navigation, though it can be any content) alongside some primary content.

Please note that all the following examples use the [NxActionComponent](./documentation/action) for the side navigation items. The `NxActionModule` **is not automatically imported** when you import the `NxSidebarModule`. Therefore you have to import the `NxActionModule` yourself, if you want the same sidebar look:

```ts
import { NxActionModule } from '@allianz/ng-aquila/action';
```
