UNPKG

@gfazioli/mantine-onboarding-tour

Version:

A Mantine 9 onboarding tour component with focus-reveal overlays, cutout highlights, step-by-step popover navigation, and compound components for guided user experiences.

20 lines (17 loc) 484 B
'use client'; 'use strict'; const setScrollParam = ({ axis, parent, distance }) => { if (!parent && typeof document === "undefined") { return; } const method = axis === "y" ? "scrollTop" : "scrollLeft"; if (parent) { parent[method] = distance; } else { const { body, documentElement } = document; body[method] = distance; documentElement[method] = distance; } }; exports.setScrollParam = setScrollParam; //# sourceMappingURL=set-scroll-param.cjs.map