# DialogTrigger (@salmonui/overlays/dialog)

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

Canonical: https://salmonui.dev/docs/reference/overlays/dialog/DialogTrigger

```ts
import { DialogTrigger } from '@salmonui/overlays/dialog';
```

Entry index: https://salmonui.dev/docs/reference/overlays/dialog (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/overlays/dialog.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`.
