Skip to content

Skeleton

Loading placeholder with configurable dimensions and shape. Renders a block of placeholder characters to indicate content that is loading or not yet available.

Import

tsx
import { Skeleton } from "silvery"

Props

PropTypeDefaultDescription
widthnumber20Width in columns
heightnumber1Height in rows
charstring"░"Placeholder character
shape"line" | "block" | "circle"auto from heightShape hint

Shape Behavior

  • line: Single row of placeholder characters (default when height=1)
  • block: Multiple rows of placeholder characters (default when height>1)
  • circle: Shorter, centered row for avatar-style placeholders

Usage

tsx
<Skeleton width={20} />
<Skeleton width={30} height={3} />
<Skeleton width={10} shape="circle" />

See Also

Released under the MIT License.