# DrawerTrigger (@salmonui/overlays/drawer)

> The DrawerTrigger function of @salmonui/overlays/drawer: Opens the dialog (aria-haspopup="dialog", aria-expanded); render swaps the element. Use it in trigger.

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

```ts
import { DrawerTrigger } 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 DialogTrigger(props: DialogTriggerProps): ReactElement;
```

Opens the dialog (`aria-haspopup="dialog"`, `aria-expanded`); `render` swaps the element. Use it in `trigger`.
