skeletonShimmer

fun Modifier.skeletonShimmer(highlight: Color = MaterialTheme.colorScheme.shimmerHighlight()): Modifier

Sweeps a soft highlight band across the placeholders in this subtree so a skeleton reads as loading rather than frozen. Apply it once at the root of a skeleton layout. Every shimmering subtree uses the same frame clock, so separate cards sweep in unison.

The highlight only lands on drawn placeholders, not the gaps between them. The modifier adds no input handling or semantics, and does nothing when LocalSkeletonShimmerEnabled is false, the system reduces motion, or in previews.

Parameters

highlight

the swept color; defaults to the lighter of surface and on-surface.