LocalSkeleton

Composition local that provides the current OudsSkeleton state to the composable hierarchy.

This is used internally by OUDS components to automatically display skeleton states when wrapped in OudsSkeletonProvider. Most developers should use OudsSkeletonProvider instead of accessing this composition local directly.

Direct access may be useful for custom components that need to integrate with the OUDS skeleton system:

@Composable
fun CustomComponent(skeleton: OudsSkeleton? = LocalSkeleton.current) {
// Component implementation
}

See also

The skeleton class that controls animation and state.

The recommended way to provide skeleton state to child components.