Skip to content

Commit

Permalink
fixup! Add controlled popover
Browse files Browse the repository at this point in the history
  • Loading branch information
atmelmicro committed Dec 3, 2024
1 parent 4e54b81 commit 785822d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/components/Popover/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -284,9 +284,12 @@ React.createElement(() => {
});
```

## Controlled Popover
## Controlled Popover

To make it easier to implement the popover in your app, you can set the `popoverHelperId` prop to the same ID as the `popovertarget` of a trigger. This uses the browser Popover API and will control the popover by closing it when the trigger or backdrop is pressed.
To make it easier to implement the popover in your app, you can set the
`popoverHelperId` prop to the same ID as the `popovertarget` of a trigger.
This uses the browser Popover API and will control the popover by closing it
when the trigger or backdrop is pressed.

```docoff-react-preview
React.createElement(() => {
Expand Down

0 comments on commit 785822d

Please sign in to comment.