Skip to main content

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​

public fun CamoSkeleton(
height: Dp,
modifier: Modifier = Modifier,
width: Dp? = null,
shape: ShapeRole = ShapeRole.Small,
)
NameTypeDefault
heightDprequired
modifierModifierModifier
widthDp?null
shapeShapeRoleShapeRole.Small
Design notes

Why CamoSkeleton works this way, its states and its edge cases: contributor docs.