Skip to content
synccn

Skeleton

Shimmering placeholder while content loads.

Installation

$ pnpm dlx shadcn@latest add @synccn/skeleton

First time in this project? Connect synccn with one command.

Usage

import { Skeleton } from "@/components/ui/skeleton";<Skeleton className="h-4 w-40" />

API reference

Generated from the component's TypeScript types, so it always matches the code.

  • className
    string

    Extra classes for the root element.

Also accepts every standard <div> attribute, and forwards its ref.

Dependencies

Read from the component's imports when the site builds. The CLI installs all of these for you.

Helpers

npm packages

Accessibility

From the source

Read from this component's code when the site builds, so it can't drift.

  • ARIA roles: status
  • ARIA attributes: aria-label
  • Announces changes to screen readers