Skeleton Loader
animate-pulse class, modern applications rely on Shimmer effects (a sleek gradient sliding across the background). This component injects its own pure CSS @keyframes to achieve a gorgeous shimmer. It provides composite templates out of the box (like Cards and Profiles), but also exposes top-level props so you can strictly define custom widths, heights, and border radii.Card
A composite placeholder that mirrors a media card layout.
variant"card"- outputs a pre-arranged composite rather than a single shape.
animation"shimmer"- is the default — a gradient sliding across the placeholder.
Installation
New project? Follow the installation guide to set up Tailwind CSS, shadcn, the cn helper and lucide-react, register the @algorize-ui registry once, then copy your styles from the Themes page.
Install Skeleton
components/ is written into your project. Copy any snippet from a Usage tab above and it runs.
Install dependencies
Nothing beyond the shared setup — Skeleton needs only the cn helper and lucide-react, which the installation guide already put in place.
Examples
Profile
- Use
variant"profile" - for an avatar with two text lines beside it.
Text
- Use
variant"text" - for stacked paragraph lines.
Rectangle
- Use
variant"rect" - as a block placeholder for images and charts. It is the default.
Circle
- Use
variant"circle" - for avatars and round icon slots.
Pulse animation
- Use
animation"pulse" - for the classic fading placeholder instead of the sliding shimmer.
No animation
- Use
animation"none" - for a static placeholder — the right choice under
prefers-reduced-motion.
Custom composition
- Use
variant"custom" - to build atomic pieces yourself.
widthheightandradiustake a number or a CSS string, and are set inline so they override Tailwind classes.
Features
Customizable
Easily adapt the component's styling and behavior to fit your application's unique design system.
Accessible
Built with accessibility in mind, ensuring all users can interact with your application effectively.
Responsive
Fully responsive design that looks and works great across desktop, tablet, and mobile devices.
Performant
Optimized for maximum performance with minimal re-renders and efficient state management.
Best Practices & Guidelines
Usage Guidelines
Follow standard design principles when implementing this component. Ensure proper contrast, spacing, and context within your layout.
Props Reference
| Prop | Type | Default | Description |
|---|---|---|---|
variant | | "rect" | Determines the structural shape. profile and
card output pre-arranged composite layouts. |
animation | "pulse" | "shimmer" | "none" | "shimmer" | Determines the loading animation style. shimmer slides a
gradient, pulse fades opacity. |
width | string | number | undefined | Sets an exact inline width (e.g. 200 or
"50%"). Overrides Tailwind utility classes. |
height | string | number | undefined | Sets an exact inline height (e.g. 48 or
"100vh"). Overrides Tailwind utility classes. |
radius | string | number | undefined | Sets an exact border-radius (e.g. "1rem" or
8). Useful for perfect circles or custom rounding. |
className | string | undefined | Allows you to pass custom Tailwind classes to manage layout
constraints like margins or max-widths. |