# PopoverTrigger (@salmonui/overlays/popover)

> The PopoverTrigger function of @salmonui/overlays/popover: The element that toggles the popover: a &lt;button type="button"> with aria-haspopup="dialog", aria-expanded and, while open, aria-controls. render swaps the element (render={(p) => &lt;Button {...p} />}).

Canonical: https://salmonui.dev/docs/reference/overlays/popover/PopoverTrigger

```ts
import { PopoverTrigger } from '@salmonui/overlays/popover';
```

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

## Reference

Kind: function

```ts
function PopoverTrigger(props: PopoverTriggerProps): ReactElement;
```

The element that toggles the popover: a `<button type="button">` with
`aria-haspopup="dialog"`, `aria-expanded` and, while open,
`aria-controls`. `render` swaps the element (`render={(p) => <Button {...p} />}`).
