@Composable
fun Skeleton() {
Column {
Text("Some heading", Modifier.placeholder(true))
Text("Some body text", Modifier.placeholder(true))
// In place of an image, for instance:
Box(Modifier.clip(RoundedCornerShape(16.dp).placeholder(true))
}
}
sindrenm
08/17/2022, 1:05 PM
You may also want to add a shimmer effect, in which case you can add a highlight: