Skip to content
Logic2BUI

Search docs

Search components and documentation

New
Menu

Skeleton

Use to show a placeholder while content is loading.

Installation

npx logic2b@next add skeleton

Usage

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

<Skeleton className="h-4 w-[250px]" />

Usage notes

Skeleton renders a single <div> and forwards every native <div> prop. Set its shape and size with className.

Examples

Card

List

Live playground

Edit the component props and inspect the exact JSX before copying it. The preview loads only when this section enters the viewport.

Generated JSX
<Skeleton
  className="h-20 w-full max-w-sm"
 />

API reference

Generated from the public TypeScript exports in src/ui/skeleton.tsx.

View JSON

Skeleton

Component
Props: React.ComponentProps<"div">

Accessibility contract

Machine-readable behavior and consumer responsibilities for skeleton.

View JSON
Support
Composition contract
Pattern
loading placeholder
HTML div

Built-in semantics

  • Is hidden from assistive technology by default and does not announce loading on its own.

Consumer responsibilities

  • Put the containing region in an appropriate busy/status state and preserve a stable accessible name while content loads.

Known limitations

  • • A standalone skeleton has no semantic loading announcement.