Skeleton
A loading placeholder component that mimics the shape of content while data is being fetched or processed.
Usage
Basic usage example to quickly see how the Skeleton
works.
Lorem ipsum dolor sit amet...
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Placeat adipisci, iste ducimus quasi ipsa autem tenetur! Exercitationem perferendis mollitia omnis.
Lorem ipsum dolor sit amet consectetur adipisicing elit. Porro unde itaque ea corrupti maxime perferendis deserunt praesentium iure nemo, consequatur obcaecati eaque, ipsum et alias saepe, ab placeat quo reiciendis.
Properties
Interactive configurator to explore customization options for the Skeleton
component.
XY
Size
Round
Color
API References
Styles API
Styles API | Type | Default | Annotation |
---|---|---|---|
unstyled? | boolean | false | if true , all default styles will be removed |
Props API
type Size = ((string & {}) | number) | { h?: CSSProperties["height"]; w?: CSSProperties["width"] };
Props API | Type | Default | Annotation |
---|---|---|---|
visible? | boolean | true | Determines whether Skeleton overlay should be displayed. |
size? | Size | {h: auto, w:100%} | Skeleton height , numbers are converted to rem. |
circle? | boolean | false | If set, Skeleton width and border-radius are equal to its height |
round? | CSSProperties["borderRadius"] | 16 | Key of theme.radius or any valid CSS value to set border-radius. Numbers are converted to rem. |
animate? | boolean | true | Determines whether Skeleton should be animated. |
Source Codes
Full working code example, including necessary markup and styles. You can copy and paste this code directly to start using the component immediately.