UNPKG

react-custom-tours

Version:

A library with tips that you can attach to blocks on your sites so that users can more easily understand how to use your site

15 lines (14 loc) 304 B
const h = () => typeof CSS < "u" && CSS.supports("anchor-name", "--x"), e = (t, o) => { const n = o / 2; return { top: t.top - n, left: t.left - n, width: t.width + o, height: t.height + o, transition: "none" }; }; export { e as anchorFallbackStyle, h as hasNativeAnchor };