Skeleton
is used to display the loading state of some components.
You can use it as a standalone component.
Or to wrap another component to take the same height and width.
Useful when fetching remote data.
You can change the animation color with colorStart
and colorEnd
.
You can prevent the skeleton from rendering using the isLoaded
prop.
Name | Type | Description | Default |
---|---|---|---|
colorScheme | string | - | |
css | Interpolation<{}> | The emotion's css style object | - |
endColor | string | The color at the animation end | - |
fadeDuration | number | The fadeIn duration in seconds | 0.4 |
isLoaded | boolean | If `true`, it'll render its children with a nice fade transition | - |
orientation | "horizontal" | "vertical" | - | |
size | string | - | |
speed | number | The animation speed in seconds | 0.8 |
startColor | string | The color at the animation start | - |
styleConfig | Record<string, any> | - | |
variant | string | - |