Skip to Content
Columbus

Skeleton

A placeholder for loading content.

Installation

pnpm dlx shadcn@latest add @columbus/skeleton

Usage

Set the size and shape with classes. Match the layout of the content that's loading.

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

<Skeleton className="size-10 rounded-full" />;

Accessibility

Skeletons are visual only. Set aria-busy on the region that's loading and add text for screen readers. Use aria-live so the content is announced when it arrives.

Loading article…

API reference

Skeleton is a <div> and accepts all of its attributes.

Prop

Type

On this page