Skeleton

CSS shimmer placeholder for loading states. Includes SkeletonText and SkeletonAvatar helpers.

Live Demo

Props

PropTypeDefaultDescription
widthstring | number100%Width of the skeleton element.
heightstring | number1remHeight of the skeleton element.
borderRadiusstring | numbervar(--border-radius-sm)Border radius of the skeleton.
classNamestringAdditional CSS class names.

Usage

import { Skeleton, SkeletonText, SkeletonAvatar } from '@ghiberti85/ui'

// Basic
<Skeleton width="200px" height="20px" />

// Multi-line text
<SkeletonText lines={3} />

// Avatar placeholder
<SkeletonAvatar size={40} shape="circle" />

// Card skeleton
<div>
  <Skeleton height="160px" />
  <SkeletonText lines={3} />
</div>

View in Storybook

Open in Storybook
Ghiberti UI — Design System