Skeleton

Placeholder shimmer em CSS para estados de carregamento. Inclui SkeletonText e SkeletonAvatar.

Demonstração

Props

PropTipoPadrãoDescrição
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.

Uso

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>

Ver no Storybook

Abrir no Storybook
Ghiberti UI — Design System