LocalStylishReducedMotion

Composition local that forces the reduced-motion mode for isStylishReducedMotionEnabled, regardless of the platform setting.

Defaults to false, which defers to the platform's motion preference. Provide a different value to override it, e.g. in UI tests or in an app that exposes its own motion preference:

CompositionLocalProvider(LocalStylishReducedMotion provides true) {
StylishTheme(darkTheme = darkTheme) { ... }
}

See also