Skip to Content
DocsResourcesShowcase

Skeleton

Used to render a placeholder while the content is loading.

SourceStorybookRecipe

import { Skeleton, SkeletonCircle, SkeletonText } from '@saas-ui/react/skeleton'
<SkeletonCircle size="10" />
<SkeletonText noOfLines={2} />
<Skeleton height="200px" />

Use the Skeleton component to create a feed skeleton.

Use the SkeletonText component to create a skeleton for text.

Use the loading prop to show the skeleton while the content is loading.

Select
Select

Use the variant prop to change the visual style of the Skeleton.

pulse

shine

When loading is changed to false, the Skeleton component will fade in.

Chakra UI is cool

PropDefaultType
colorPalette 'gray'
'gray' | 'red' | 'orange' | 'yellow' | 'green' | 'teal' | 'blue' | 'cyan' | 'purple' | 'pink' | 'accent'

The color palette of the component

loading true
'true' | 'false'

The loading of the component

variant 'pulse'
'pulse' | 'shine' | 'none'

The variant of the component

Previous

Separator

Next

Slider