Skeleton

A placeholder animation component shown while content is loading to indicate upcoming layout.

ui

Installation

$npx futureuikit add skeleton

Import

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

Named Keys & Props

Pass these exact named keys as props on <Skeleton />. Click any color pill to copy the prop.

colorDefault is "default"(Black & White)
shapeCorner shape
"default""square""rounded""sharp"

Usage Example

A basic implementation example to get you started.

Example Implementation
import { Skeleton } from "@/components/ui/skeleton";

export default function Example() {
  return (
    <div className="flex items-center space-x-4">
      <Skeleton className="h-12 w-12 rounded-full" />
      <div className="space-y-2">
        <Skeleton className="h-4 w-62.5" />
        <Skeleton className="h-4 w-50" />
      </div>
    </div>
  );
}

Features

Key capabilities and highlights.

Key Capabilities
  • ◆Pulsing animation to indicate loading state.
  • ◆Composable shape that matches the dimensions of the content it replaces.
  • ◆Lightweight with no external dependencies.

Notes

Important implementation details to consider.

Implementation Details
  • ◆Install: Run 'npx futureuikit add skeleton'.
  • ◆Import: 'import { Skeleton } from "@/components/ui/skeleton";'
  • ◆Usage: Use Skeleton elements sized to match your content layout as loading placeholders.