Products · Components

Skeleton

A gray placeholder in the shape of content that is still loading.

Give it the size of what's loading. The page then doesn't jump when the content arrives.

Children: Nothing

Example

The Skeleton component
view.dml
<View gap="small">
  <Skeleton shape="circle" height="48" />
  <Skeleton shape="text" lines="2" />
</View>

Props

PropTypeWhat it is
shapetext, circle, boxDefault: text.
linesnumberLines of text, for text. Default: 1.
heightnumberIn pixels, for circle and box.

Events

None.

Keep reading

On this page