You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/react-core/src/components/Popover/examples/Popover.md
+18-2Lines changed: 18 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,57 +19,73 @@ By default, the `appendTo` prop of the popover will append to the document body
19
19
### Basic
20
20
21
21
```ts file="./PopoverBasic.tsx"
22
+
23
+
```
24
+
25
+
### Hoverable
26
+
27
+
```ts file="./PopoverHover.tsx"
28
+
22
29
```
23
30
24
31
### Close popover from content (controlled)
25
32
26
33
```ts file="./PopoverCloseControlled.tsx"
34
+
27
35
```
28
36
29
37
### Close popover from content (uncontrolled)
30
38
31
39
Note: If you use the isVisible prop, either refer to the example above or if you want to use the hide callback from the content then be sure to keep isVisible in-sync.
0 commit comments