Skeleton

Skeleton is a component that acts as a placeholder until content is loaded.

Usage

import { Skeleton, SkeletonCircle, SkeletonText } from "@yamada-ui/react"
<Skeleton />
<SkeletonCircle />
<SkeletonText />

Change Variant

Change Size

Additionally, by passing child elements, you can match the width and height.

Badge
Badge

To change the blink color, use the startColor and endColor properties.

Change Text Gap

To change the gap between text lines, set the gap property.

Specify Number of Lines

To specify the number of lines, set a numeric value to lineClamp.

To change the blink duration, set a numeric value (seconds) to duration.

Display Child Elements

To display child elements, pass false to loading.

Change Fade In Duration

To change the fade in duration, set a numeric value (seconds) to fadeDuration.

Props