UNPKG

@mantine/core

Version:

React components library focused on usability, accessibility and developer experience

13 lines (12 loc) 607 B
"use client"; require("../../../_virtual/_rolldown/runtime.cjs"); let _mantine_hooks = require("@mantine/hooks"); //#region packages/@mantine/core/src/core/MantineProvider/use-respect-reduce-motion/use-respect-reduce-motion.ts function useRespectReduceMotion({ respectReducedMotion, getRootElement }) { (0, _mantine_hooks.useIsomorphicEffect)(() => { if (respectReducedMotion) getRootElement()?.setAttribute("data-respect-reduced-motion", "true"); }, [respectReducedMotion]); } //#endregion exports.useRespectReduceMotion = useRespectReduceMotion; //# sourceMappingURL=use-respect-reduce-motion.cjs.map