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
popover state: __auto__ indicates that popover can be "light dismissed" by selecting outside the popover area, by contrast __manual__ popover must always be explicity hidden.
* **`usePopover`**: Hook to use [Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API).
7
+
* @param {UsePopoverProps} param - object
8
+
* @param {"auto"|"manual"} param.mode - popover state: __auto__ indicates that popover can be "light dismissed" by selecting outside the popover area, by contrast __manual__ popover must always be explicity hidden.
9
+
* @param {(evt: ToggleEvent) => void} [param.onBeforeToggle] - function that will be executed before popover showed/hidden.
10
+
* @param {(evt: ToggleEvent) => void} [param.onToggle] - function that will be executed when popover has been showed/hidden.
11
+
* @returns {UsePopoverResult} reuslt
12
+
* Object with these properties:
13
+
* - __isSupported__: boolean that indicates if Popover API is supported or not.
14
+
* - __isSupported__: boolean that indicates if popover is opened or not.
15
+
* - __showPopover__: function to show popover.
16
+
* - __hidePopover__: function to hide popover.
17
+
* - __togglePopover__: function to toggle popover.
18
+
* - __Popover__: Component that wraps the element to render in popover. It can be stylized with _className_ and _style_ props.
0 commit comments