YuhuanStudioYunUIDocs
Feedback

Skeleton

A pulsing placeholder block for loading states, shaped entirely with className.

A pulsing placeholder block for loading states. It renders a muted, rounded <div> with a subtle animate-pulse. Size and shape it entirely with className — set a width and height for lines, or rounded-full for avatars — and combine several to sketch out the layout you are waiting on.

Import

import { Skeleton } from "@yuhuanowo/yunui";

Basic

Lines

Card placeholder

Avatar + text

Props

Skeleton is a plain <div>, so it accepts every standard <div> attribute. There are no custom props — drive the size, shape, and spacing entirely through className.

PropTypeDefaultDescription
classNamestringSets the size and shape (e.g. `h-4 w-48`, `rounded-full`).

On this page