# Drawer (@salmonui/overlays/drawer)

> The Drawer function of @salmonui/overlays/drawer: Drawer (.salmon-drawer): a modal (or modeless) dialog docked to an edge, on the same dialog host. Escape and a backdrop press close it by default. The Navigation category's Sidebar overlay mode renders it.

Canonical: https://salmonui.dev/docs/reference/overlays/drawer/Drawer

```ts
import { Drawer } from '@salmonui/overlays/drawer';
```

Entry index: https://salmonui.dev/docs/reference/overlays/drawer (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/overlays/drawer.md).

## Reference

Kind: function

```ts
function Drawer(props: DrawerProps): ReactElement;

namespace Drawer {
    const Trigger: DialogParts['Trigger'];
    const Close: DialogParts['Close'];
    const Title: DialogParts['Title'];
    const Description: DialogParts['Description'];
    const Body: DialogParts['Body'];
    const Footer: DialogParts['Footer'];
}
```

Drawer (`.salmon-drawer`): a modal (or modeless) dialog docked to an edge,
on the same dialog host. Escape and a backdrop press close it by default.
The Navigation category's Sidebar overlay mode renders it.
