Browse docsSkeleton

FeedbackNew

Glass Skeleton

A glass placeholder block, circle or set of text lines shown while content loads.

Preview

Demos ready. Update 0.

Installation

For React 19+ apps with Tailwind CSS 4.

npx shadcn@4.14.1 add @glassyui/glass-skeleton

Adds 5 files to components/glassyui and installs clsx.

Usage

Usage

import { GlassSkeleton } from "@/components/glassyui/glass-skeleton";

export function LoadingProfile() {
  return (
    <div aria-busy="true">
      <GlassSkeleton variant="circle" />
      <GlassSkeleton variant="text" lines={2} />
    </div>
  );
}

Examples

Size a block with CSS

<GlassSkeleton style={{ height: 120, borderRadius: 20 }} />

API reference

GlassSkeleton

A div hidden from assistive technology with aria-hidden.

PropTypeDefaultDescription
variant'block' | 'circle' | 'text''block'block is sized with CSS, circle is a 2.5rem circle you can resize with width, and text is a stack of lines.
linesnumber3Line count for the text variant, at least 1; the last of several lines is shorter.

Also accepts HTML div attributes, except children.

Types
GlassSkeletonPropsGlassSkeletonVariant
Accessibility
Skeletons are aria-hidden, so set aria-busy on the region that is loading.