Docs
Components/Primitives/Skeleton

Skeleton

A placeholder shimmer for loading states.

s0 add skeleton

Usage

S0.Skeleton(height: 20)
S0.Skeleton(width: 100, height: 16)
VStack(alignment: .leading, spacing: 8) {
    S0.Skeleton(width: 200, height: 20)
    S0.Skeleton(height: 14)
    S0.Skeleton(height: 14)
}

Parameters

NameTypeDefaultDescription
widthCGFloat?nilFixed width. Full-width when nil.
heightCGFloat20Height of the skeleton rectangle.