CamoSkeleton
A placeholder block for content that hasn't loaded (an image, a button). A null width fills the available
width. Hidden from screen readers: the screen that shows skeletons announces "Loading" once.
API
- Kotlin
- Dart
public fun CamoSkeleton(
height: Dp,
modifier: Modifier = Modifier,
width: Dp? = null,
shape: ShapeRole = ShapeRole.Small,
)
| Name | Type | Default |
|---|---|---|
height | Dp | required |
modifier | Modifier | Modifier |
width | Dp? | null |
shape | ShapeRole | ShapeRole.Small |
Design notes
Why CamoSkeleton works this way, its states and its edge cases: contributor docs.