Skip to content

Skeleton ​

Variants

Loading...

Card Placeholder

Loading...

Skeletons display a placeholder preview of content before data gets loaded.

  • Tag: <flint-skeleton>
  • Class: FlintSkeleton

Import ​

ts
import '@getufy/flint-ui'; // auto-registers all
// or
import { FlintSkeleton } from '@getufy/flint-ui';

Usage ​

html
<flint-skeleton></flint-skeleton>

Properties ​

PropertyAttributeTypeDefaultDescription
darkdarkbooleanfalseIf true, applies dark-theme styles regardless of OS preference.
animationanimation'pulse' | 'wave' | 'none''pulse'The animation type.
shapeshape'text' | 'circular' | 'rectangular' | 'rounded''text'The shape of the skeleton.
widthwidthstring''The width of the skeleton. Accepts any CSS length value (e.g. '200px', '50%').
heightheightstring''The height of the skeleton. Accepts any CSS length value.
labellabelstring'Loading...'Accessible label announced by screen readers. Set to '' to silence.

CSS Parts ​

NameDescription
skeletonThe inner skeleton span element.

CSS Custom Properties ​

PropertyDefault
--flint-skeleton-bg—
--flint-skeleton-bg-dark—
--flint-skeleton-wave-color—
--flint-skeleton-animation-duration—
--flint-border-radius-sm—
--flint-border-radius-md—
--flint-border-radius-lg—