popup
v0.88.2arrow_drop_down



















Called when a close event happens.
Called when the portal is mounted on the DOM.
Called when an open event happens.
Called when the portal is unmounted from the DOM.
A Popup displays additional information on top of a page.
Called when a close event happens.
Called when the portal is mounted on the DOM.
Called when an open event happens.
Called when the portal is unmounted from the DOM.
A PopupContent displays the content body of a Popover.
A PopupHeader displays a header in a Popover.
Popper.js does not support ref objects from createRef()
as referenceElement. If we will pass
directly ref
, ref.current
will be null
at the render process. We use memoize to keep the
same reference between renders.
Name | Type | Description |
---|---|---|
as | elementType | An element type to render as (string or function). |
children | node | The content of the Popup |
className | string | Classes to add to the Popup content className. |
content | custom | Shorthand for primary content. |
as | elementType | An element type to render as (string or function). |
children | node | Primary content. |
className | string | Additional classes. |
content | custom | Shorthand for primary content. |