# Navigation drawer
[Navigation drawers](https://material.io/components/navigation-drawer) provide
access to destinations in your app.

**Contents**
* [Using navigation drawers](#using-navigation-drawers)
* [Anatomy](#anatomy)
* [Standard navigation drawers](#standard-navigation-drawers)
* [Modal navigation drawers](#modal-navigation-drawers)
* [Bottom navigation drawers](#bottom-navigation-drawers)
* [Theming](#theming)
## Using navigation drawers
Before you can use navigation drawers, you need to add a dependency to the
Material Components for Android library. For more information, go to the
[getting started](https://github.com/material-components/material-components-android/tree/master/docs/getting-started.md)
page. For modal navigation drawers you also need to add a dependency to tne
AndroidX `DrawerLayout` library. For more information go to the
[releases](https://developer.android.com/jetpack/androidx/releases/drawerlayout)
page.
The content of all navigation drawer types can be implemented using a
`NavigationView`.
```xml
```
_**Note:** The `layout_width` and `layout_height` attributes should be set to
`wrap_content`, `match_parent`, or a custom dimension depending on the
navigation drawer type and parent `ViewGroup`._
### Adding a menu

In the layout:
```xml
```
In `res/menu/navigation_drawer.xml`:
```xml
```
### Adding a header

In the layout:
```xml
```
In `res/layout/header_navigation_drawer.xml`:
```xml
```
### Adding dividers and subtitles

Dividers are automatically added between ``s with unique IDs. When a
sub-`