alexisroe

Skeleton

Component

About

A loading placeholder with a solid border and a diagonal-stripe pattern fill, used to mock text, avatars or image blocks while content is loading on monochrome/e-ink style interfaces.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Skeleton to your project and fits it to your theme.

Code

How Skeleton is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import Skeleton from "@/components/ui/skeleton";

export default function SkeletonAvatarWithLinesDemo() {
  return (
    <div className="flex w-72 items-center gap-4">
      <Skeleton variant="round" style={{ height: 48, flexShrink: 0 }} />
      <div className="flex flex-1 flex-col gap-2">
        <Skeleton style={{ height: 12 }} />
        <Skeleton style={{ height: 12, width: "70%" }} />
      </div>
    </div>
  );
}

More by alexisroe

View all
  • Log

    Log

    7
  • Notification

    Notification

    2
  • Number Stepper

    Number Stepper

    2
  • Segmented Control

    Segmented Control

    2
  • Chip

    Chip

    2
  • Checkbox

    Checkbox

    1
  • E-Ink Code

    E-Ink Code

  • QR Code

    QR Code