Documentation
Skeleton

Skeleton

Display a skeleton whilst another component is loading.

Usage

First of all, you need to import the Skeleton component from the kitchn package.

import { Skeleton } from "kitchn"

Default with Set Width

Default with Box Height

Wrapping children

Wrapping children with fixed size

Normal

Round

Square

No animation

Props

NameTypeDefaultRequiredDescriptionAccepted values
showbooleantrue-The skeleton's appearance (if it's shown or not).-
widthnumber | string--The skeleton's width.-
heightnumber | string--The skeleton's height.-
boxHeightnumber--The skeleton's box height.-
animatedbooleantrue-The skeleton's mode (animated or not).-
shapestringnormal-The skeleton's shape.normal | square | round