# Drawer Modes

The expanded Drawer component can **Push** the content (decrease its width) or **Overlay** it (be on top of it and show a modal background).

You can choose which mode you want to use though the `Mode` parameter which takes a member of the `DrawerMode` enum:

* [`Push`](https://www.telerik.com/blazor-ui/documentation/components/drawer/modes#push-mode)

* [`Overlay`](https://www.telerik.com/blazor-ui/documentation/components/drawer/modes#overlay-mode)

If the `Mode` is not set, by default the Drawer will be in `Overlay` mode.

You can control how large the drawer is by setting its `Width` parameter to a [CSS value](https://www.telerik.com/blazor-ui/documentation/common-features/dimensions). We recommend using pixel values for better control over its size - there are many ways a drawer can be placed in the layout and percentage values depend highly on the DOM hierarchy and CSS rules applied to the elements.

## Push Mode

When `Mode` is set to `Push`, the Drawer's default width is `240px` when expanded, and `50px` when collapsed in [MiniMode](https://www.telerik.com/blazor-ui/documentation/components/drawer/mini-view). When it's state is changed (expanded/collapsed) the content is resized - the width is increased or decreased based on the state.

The drawer's height is dynamic based on the height of the content (you can change it with CSS).

> caption The Drawer in Push mode.

<demo metaUrl="client/drawer/pushmode/" height="420"></demo>

## Overlay Mode

When `Mode` is set to `Overlay`, the Drawer's navigation is on top of the content and its height takes all available vertical space (100%). The drawer also adds blurred background on top of the content until the user clicks on an item of the Drawer or outside.

ComboBoxes, DropDownLists, DateTimePickers and similar popup-based components are not supported inside the `Template` or `ItemTemplate` of a Drawer in `Overlay` mode. This is because the popup is rendered outside the Drawer and clicking on the popup will close the Drawer.

> caption Drawer in Overlay mode

<demo metaUrl="client/drawer/overlaymode/" height="420"></demo>

## See Also

* [Drawer MiniMode](https://www.telerik.com/blazor-ui/documentation/components/drawer/mini-view)
* [Drawer Navigation](https://www.telerik.com/blazor-ui/documentation/components/drawer/navigation)
* [Drawer Demos](https://demos.telerik.com/blazor-ui/drawer/overview)
