Skip to content

Skeleton ​

Placeholder đang tải.

ts
import { Skeleton } from "@minap/ui";

Examples ​

Mẫu sống trong Preview; chọn View code khi cần copy.

Usage ​

tsx
import { Skeleton } from "@minap/ui";

export function Example() {
  return (
    <>
      <div className="flex items-center gap-3">
        <Skeleton className="h-10 w-10 shrink-0 rounded-full" />
        <div className="flex min-w-0 flex-1 flex-col gap-2">
          <Skeleton className="h-4 w-full" style={{ maxWidth: "75%" }} />
          <Skeleton className="h-4 w-full" style={{ maxWidth: "50%" }} />
        </div>
      </div>
      <Skeleton className="h-10 w-full" style={{ height: 64 }} />
    </>
  );
}

Props / API ​

Prop / APITypeDefaultNotes
classNamestring—Kích thước qua utility

MINAP UI — Soft Periwinkle light, Mobile-First