useReducedMotion
functionSource L5Open-code aq-ui React hook for Use Reduced Motion.
function useReducedMotion(defaultValue = false): boolean- Returns
boolean
Parameters
| Name | Default |
|---|---|
defaultValue? | false |
const result = useReducedMotion()
Open-code aq-ui React hook for Use Reduced Motion.
pnpm dlx aq-ui@alpha add use-reduced-motionImport the parts you need, then jump to an export for its contract.
"use client"
import { useReducedMotion } from "@/hooks/use-reduced-motion"
const result = useReducedMotion()Open-code aq-ui React hook for Use Reduced Motion.
function useReducedMotion(defaultValue = false): booleanboolean| Name | Default |
|---|---|
defaultValue? | false |
use-media-query