LocalMotionScheme

val LocalMotionScheme: CompositionLocal<MotionScheme>

A read-only CompositionLocal that provides the current MotionScheme to Material 3 components.

The motion scheme is typically supplied by MaterialTheme.motionScheme and can be overridden for specific UI subtrees by wrapping it with another MaterialTheme.

This API is exposed to allow retrieving motion values from inside CompositionLocalConsumerModifierNode implementations, but in most cases it's recommended to read the motion values from MaterialTheme.motionScheme.