Stylish Skeleton Line
fun StylishSkeletonLine(modifier: Modifier = Modifier, color: Color = MaterialTheme.colorScheme.surfaceVariant, shape: Shape = RoundedCornerShape(4.dp), minAlpha: Float = 0.3f, maxAlpha: Float = 0.7f, durationMillis: Int = DefaultStylishAnimationTokens.durationLong, animate: Boolean = true)
A shimmering placeholder line used to indicate loading content. Renders a rounded rectangle whose opacity oscillates between minAlpha and maxAlpha to produce a shimmer effect.
Parameters
modifier
Modifier applied to the placeholder box. Use Modifier.width and Modifier.height to size it.
color
Base color of the placeholder. Defaults to MaterialTheme.colorScheme.surfaceVariant.
shape
Corner shape. Defaults to RoundedCornerShape with 4.dp.
min Alpha
Minimum opacity during the shimmer cycle.
max Alpha
Maximum opacity during the shimmer cycle.
duration Millis
Duration in milliseconds of one full shimmer half-cycle (fade up or down). Defaults to DefaultStylishAnimationTokens.durationLong (500 ms).