Skip to content
Pebble Pro is here at $49 one timeSee what’s included ↗
Pebble
ComponentsDocsMCPPricing
⌕ Find a component↗Log in
All components 673

Categories

Core inputs & forms46Buttons & actions33Navigation36Overlays & feedback49Data display33Charts & data viz40Cards & layout43Marketing blocks38App shells & pages37AI interfaces40Text & typography effects33Backgrounds & visual effects38Motion & transitions32Numbers & counters32Media34E-commerce333D & interactive36Themed sets40
Start with the essentials.Installation guide ↗Connect your agent ↗
← All componentsOverlays & feedback

Skeleton

A pulsing placeholder block for content that is still loading.

Preview

Live · loading
Loaded · for comparison
ID

Ines Duarte

Design lead · Lisbon

Online
Reviews
48
Median reply
3h 12m
Approved
96.4%
  • MMalik approved Checkout v24 min ago
  • PPriya commented on Pricing1 h ago

Install

Add the editable source with the shadcn CLI. Your project also needs the shared theme tokens this component uses. Setup and requirements. The Pebble installer is not published yet.

npx shadcn@latest add https://pebbleui.com/r/skeleton.json

Props

PropTypeDefaultDescription
classNamestring—Sets the size and radius, e.g. "h-4 w-32". The block is aria-hidden; mark the loading region aria-busy.
Build notes
A `div` with the muted token as its fill and Tailwind's `animate-pulse` (an opacity keyframe), turned off under `motion-reduce`. It is always `aria-hidden`; the caller announces the loading state (for example `aria-busy` on the region it replaces). Size and shape come entirely from the caller's classes.

**Pebble (2026-11-03).** The placeholder now reads as a recessed well, matching Pebble's inputs and tracks: `bg-muted` with `inset-shadow-xs` (dropped in dark mode, where the well tone alone carries it) and a default `rounded-md`. No shimmer was added; the opacity pulse stays and still stops under reduced motion. The demo shows a profile card loading beside the loaded version of the same card, with every placeholder sized to the box it stands in for so the swap never shifts layout.

<!-- PEBBLE-LICENSE -->
View source

registry/feedback/skeleton/skeleton.tsx

/* PEBBLE-LICENSE
Built by Pebble. Component: skeleton.

First-party license: MIT

The following first-party terms apply only to original Pebble material.

MIT License

Copyright (c) 2026 Praxys Solutions LLC (Pebble)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
END PEBBLE-LICENSE */

import * as React from "react";

import { cn } from "@/lib/utils";

export type SkeletonProps = Omit<React.ComponentProps<"div">, "aria-hidden">;

// Pebble: a skeleton is a recessed well, the same muted surface and soft inner
// shade as a track or an empty input, so it reads as "content goes here" and
// not as a grey box. It breathes with a slow pulse that stops under reduced
// motion (opacity holds at rest, so the shape is still visible).
export function Skeleton({ className, ...props }: SkeletonProps) {
  return (
    <div
      {...props}
      data-slot="skeleton"
      // Always decorative; the loading state is announced by the caller.
      aria-hidden
      className={cn(
        "animate-pulse rounded-md bg-muted inset-shadow-xs motion-reduce:animate-none dark:inset-shadow-none",
        className,
      )}
    />
  );
}
Pebble

Small details.
Better interfaces.

React components to explore, make your own, and build on.

Library

  • Components
  • Installation
  • Pricing

Resources

  • For agents
  • About
  • Support

Legal

  • License
  • Terms
  • Privacy
  • Final sale

Built by Pebble

A product of Praxys Solutions LLC ↗

Pebble Pro is live

$49 one time, lifetime updates ↗