Skip to Content
Documentation
Saas UI
Get Pro
Getting started
Components
Overview

Skeleton

Used to render a placeholder while the content is loading.

SourceStorybookRecipe

Anatomy

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

Examples

Feed

Use the Skeleton component to create a feed skeleton.

Text

Use the SkeletonText component to create a skeleton for text.

With Children

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

Select
Select

Variants

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

pulse

shine

Content Loading

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

Chakra UI is cool

Props

PropDefaultType
colorPalette 'gray'
'gray' | 'zinc' | 'neutral' | 'stone' | 'red' | 'orange' | 'amber' | 'yellow' | 'lime' | 'green' | 'emerald' | 'teal' | 'cyan' | 'sky' | 'blue' | 'indigo' | 'violet' | 'purple' | 'fuchsia' | 'pink' | 'rose' | 'presence' | 'status' | 'sidebar' | 'sidebar.accent' | 'accent' | 'slate'

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

Sidebar

Next

Slider