react-tiny-popover
Advanced tools
Changelog
[8.0.1] - 2023-10-19
DOMRect
changes as it interferes with SSR, replaced with custom Rect
interface that mirrors the same APIChangelog
[8.0.0] - 2023-10-18
contentLocation
prop has been renamed to positionTransform
, behaves exactly the samepositions
prop now accepts a single string in addition to an array of prioritized stringsClientRect
to DOMRect
(thanks @jafin)transformMode
prop now accepts string values of "absolute"
or "relative"
. "absolute"
mode is its default, and causes behavior identical to contentLocation
. The "relative"
value, however, will cause the provided top
and left
values of the transform to merely be summed to the existing nudgeTop
and nudgeLeft
values, behaving as a relative positioning system.Changelog
[7.2.1] - 2023-02-11
Changelog
[7.1.0] - 2021-08-24
violations
property to PopoverState
hasViolations
property to PopoverState
onClickOutside
now uses event capturing (thanks @davidjgross)usePopover
now returns immediately when popover is not open, fixing an issue where utility and positioning functions sometimes fired even when popover was not openChangelog
[7.0.1] - 2021-08-24