GHOSTFRAMES

Configuration Options

Complete reference for tuning runtime behavior.

All Options

Type, default, and intent for each config key

OptionTypeDefaultDescription
animation"pulse" | "shimmer" | "none""shimmer"Animation style for skeleton elements.
baseColorstringvar(--skeleton-base)Base color for skeleton surfaces.
highlightColorstringvar(--skeleton-highlight)Shimmer highlight color.
borderRadiusnumber4Corner radius for non-text blocks.
speednumber1Animation speed multiplier.
minTextHeightnumber12Minimum text line block height in px.
maxDepthnumber12Maximum analyzer traversal depth.
lastLineRationumber0.7Relative width of the last line in multiline text.
iconMaxSizenumber32Largest icon size in px before classified as image.
minImageAreanumber900Smallest image area required for image classification.
transitionDurationnumber300Fade transition duration in ms.

Quick Start

Create and pass a partial config

tsx
const config = {
  animation: "pulse",
  baseColor: "#e5e7eb",
  highlightColor: "#f8fafc",
  borderRadius: 8,
  speed: 1.3,
};

<AutoSkeleton loading={loading} config={config}>
  <YourContent />
</AutoSkeleton>