Skip to main content
Version: 1.0.3

Skeleton

The Skeleton component displays a placeholder preview of content before it has loaded, reducing visual layout shifts and improving perceived loading speeds.

Installation

ignix add component skeleton

Usage

Import the component:

import { Skeleton } from '@mindfiredigital/ignix-ui';

Basic Shapes

Different shapes representing layouts for texts, circular avatars, and box components.

Profile Card Layout

A composite placeholder representing user profiles with circular images and detail lines.

Dashboard Stats Card

A layout containing titles, dynamic numbers, and secondary details representing analytics cards.

Color Themes

Custom brand-red and semantic themed skeleton states.

Props

Skeleton

PropTypeDefaultDescription
variant'text' | 'circular' | 'rectangular''rectangular'Shape of the skeleton placeholder
widthstring | number-Width of the component (supports numbers for px, CSS lengths, or Tailwind utility classes like w-12, w-full)
heightstring | number-Height of the component (supports numbers for px, CSS lengths, or Tailwind utility classes like h-12, h-full)
animation'shimmer' | 'wave' | 'pulse' | 'none''shimmer'Animation style used for transition loading effect
colorTheme'default' | 'primary' | 'success' | 'warning' | 'danger''default'Base color theme styling used for skeleton background
classNamestring-Additional custom CSS classes