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/uui-popover-container/lib/uui-popover-container.mdx
+9-7
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,8 @@ import * as stories from './uui-popover-container.story';
8
8
This component is a container for popovers. It is used to position the popover relative to the target element.
9
9
It is also a native popover. So everything descriped in the **[Popover API documentation](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API)** applies.
10
10
11
+
**Note**: The `popover` attribute that is required by the Popover API is automatically added to the uui-popover-container if it is not already present. So this attribute can be omitted, unless you want to change the default behavior. More information about this can be found in the **[Manual popover](#manual-popover)** section.
12
+
11
13
<div
12
14
style={{
13
15
borderLeft: '6px solid #f3d41b',
@@ -39,7 +41,7 @@ It is also a native popover. So everything descriped in the **[Popover API docum
<uui-buttonpopovertarget="my-popover-2">Open another popover</uui-button>
72
-
<uui-popover-containerid="my-popover-2"popover>
74
+
<uui-popover-containerid="my-popover-2">
73
75
My other popover content
74
76
</uui-popover-container>
75
77
</uui-popover-container>
@@ -93,7 +95,7 @@ As a result, you will need to manually close the popover either by clicking the
93
95
94
96
## Example: Tooltip
95
97
96
-
A tooltip is a small pop-up box that appears when the user hovers over an item, providing additional information or context about that item.
98
+
A tooltip is a small pop-up box that appears when the user hovers over an item, providing additional information or context about that item.
97
99
Note: The popover-container always needs a an element with the `popovertarget` attribute, even when it's not a button. This element is used as the anchor to position the popover.
0 commit comments