Skip to content

Early previewhamur is not on npm yet. The components are being built in the open, follow along on GitHub.

UIComponentsReact

Skeleton

A pulsing placeholder that holds the space of content still loading.

Rendered by React 19.3.1

skeleton.tsx

Installation

npx shadcn@4.23.0 add https://hamur.dev/r/react/skeleton.json

It also adds utils. The app needs its setup first: Installation.

Usage

Size and shape it with classes (h-4 w-48, rounded-full); it has no props of its own.

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

Examples

Default

An avatar and two lines of text loading.

Its preview and code are at the top of the page.

API reference

Skeleton wraps no headless component of its own: its parts are elements with classes, and their props are the element's.