[**Documentation**](../../../../README)

***

[Documentation](../../../../README) / [@zerotal/flow](../../README) / [index](../README) / Drawer

# Function: Drawer()

> **Drawer**(`props`): [`HtmlNode`](../type-aliases/HtmlNode)

Defined in: [flow/src/components.ts:1379](https://github.com/zerotaldev/zerotal/blob/1d6fb26b05b18ba077de1bfaeb46c42131cd8b70/packages/flow/src/components.ts#L1379)

A slide-over panel — the edge-anchored sibling of [Modal](Modal). Bind `show` to an
`@expose` boolean; backdrop click, the × button and Escape all close it locally with
no server round-trip, and focus is trapped while open.

## Parameters

### props

[`DrawerProps`](../interfaces/DrawerProps)

## Returns

[`HtmlNode`](../type-aliases/HtmlNode)

## Remarks

Slides in from `side` (default `"right"`; also `"left"`, `"top"`, `"bottom"`). `title`
fills the header, `closable` (default `true`) renders the × button, and `onClose`
overrides the default close action. The prop name is auto-resolved; override with `name`.

## Example

```tsx
<Drawer show={this.cart} side="right" title="Your cart">
  <CartItems />
</Drawer>
```
