Skeleton
Indicate content loading state
Import
Source
Docs
Package
Usage
Use Skeleton to create a placeholder for loading content. Component support following props:
height
– height in px (number) or string for other CSS valueswidth
– width in px (number) or string for other CSS valuesradius
– value fromtheme.radius
or number to set border-radius in pxcircle
– if true width, height and border-radius will equal to value specified inheight
propanimate
– true by default, controls animation
With content
If you want to indicate loading state of content that is already on page you can wrap it with Skeleton
and control loading overlay visibility with 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.