Ballmac UI home

Skeleton

A theme-aware loading placeholder with an animation that stops when reduced motion is requested.

Loading project summary

Installation

$ pnpm dlx shadcn@latest add @ballmac/skeleton

Usage

import { Skeleton } from "@/components/ballmac/skeleton"

The full example is in the Code tab above.

Examples

States and variants

API reference

PropTypeDefault
animated

Animate the placeholder while data is loading.

booleantrue

Also accepts the standard attributes of its root element.

Use with AI

A theme-aware loading placeholder with an animation that stops when reduced motion is requested. With the shadcn MCP server set up (guide), ask your agent:

Add the Ballmac UI Skeleton (@ballmac/skeleton) to this project with the shadcn MCP, then use it where it fits.

Use it for

  • Reserve content space while data loads
  • Preview the shape of a card or list

Not for

  • Use a spinner for a single short operation

Registry JSON: https://ui.ballmac.com/r/skeleton.json

Credits

Based on shadcn/ui Skeleton, adapted by Ballmac. Free to use in personal and commercial projects.

npm
None
Registry
shadcn/utils