Setting the file. One moment.
Subchapter 18.186
references/usePreferredReducedMotion.mdMarkdown861 BView on GitHub
Reactive prefers-reduced-motion media query.
import { usePreferredReducedMotion } from '@vueuse/core'
const preferredMotion = usePreferredReducedMotion()<template>
<UsePreferredReducedMotion v-slot="{ motion }">
Preferred Reduced Motion: {{ motion }}
</UsePreferredReducedMotion>
</template>export type ReducedMotionType = "reduce" | "no-preference"
/**
* Reactive prefers-reduced-motion media query.
*
* @see https://vueuse.org/usePreferredReducedMotion
* @param [options]
*
* @__NO_SIDE_EFFECTS__
*/
export declare function usePreferredReducedMotion(
options?: ConfigurableWindow,
): ComputedRef<ReducedMotionType>