Popover
View Source
Scroll Me
Props
ReactReactNode
Controls the default component or tag being rendered.
ReactReactElement | unknown
The element to attach the popover to. Clones the element’s ref to calculate
position relative to the optional relativeTo
prop or the renderTo
element.
boolean
Attempts to keep popover in view clipping edges if too large.
boolean
Locks external scrollbars when open.
boolean | 'minimum'
Matches anchor and popover widths.
boolean
Controls rendering of the popover.
number
Controls the space between the popover and its anchor.
() => void
Called when the popover should close.
'top-start' | 'top' | 'top-end' | 'right-start' | 'right' | 'right-end' | 'bottom-start' | 'bottom' | 'bottom-end' | 'left-start' | 'left' | 'left-end'
Where to place the popover.
any
Where to place the popover relative to. Uses renderTo
by default.
HTMLElement | string
Where to render the popover into. Accepts an HTML element or selector.
Uses the closest fixed parent or document.body
by default. This will only
be computed once on initial render.
boolean
Determines if the popover should flip or not when it overflows.
any
Calls as
innerRef
to calculate popover’s bounds.