Skeleton
Indicate content loading state
Source
LLM docs
Docs
PackageIcon
Usage
Use Skeleton to create a placeholder for loading content. Skeleton supports the following props:
height– height – any valid CSS valuewidth– width - any valid CSS valueradius– key oftheme.radiusor any valid CSS value to set border-radiuscircle– if true, width, height and border-radius will equal the value specified in theheightpropanimate– true by default, controls animation
With content
If you want to indicate the loading state of content that is already on the page, wrap it with Skeleton
and control the loading overlay visibility with the visible prop:
Lorem ipsum dolor sit amet consectetur adipisicing elit. Modi dolor nihil amet tempore magnam optio, numquam nostrum inventore tempora assumenda saepe, aut repellat. Temporibus aspernatur aperiam magnam debitis facere odio?
Laborum fuga quam voluptas aut pariatur delectus repudiandae commodi tempora debitis dolores vero cumque magni cum, deserunt, ad tempore consectetur libero molestias similique nemo eum! Dolore maxime voluptate inventore atque.