v1.0.0View on npm
API Reference

Component Documentation

Complete API reference for all 8 Skelcraft components. Inspect props, live demos, and copy-paste examples.

<Skeleton />

skelcraft

The fundamental atomic placeholder element for arbitrary UI blocks.

import { Skeleton } from "skelcraft";
Live Demo Canvas
GPU-accelerated CSS KeyframeReady
Basic Usage Example
<Skeleton width="100%" height={160} radius={8} />
Copy and drop directly into your React or Next.js components.

Props Specification

PropTypeDefaultDescription
widthstring | number | ResponsiveValue'100%'Width in px (number), CSS string, or responsive map
heightstring | number | ResponsiveValue16Height in px (number), CSS string, or responsive map
minWidth / maxWidthstring | number | ResponsiveValueundefinedMin and max width constraints
minHeight / maxHeightstring | number | ResponsiveValueundefinedMin and max height constraints
radiusstring | number4Border radius (number = px, string = CSS value)
backgroundstringundefinedCustom base background color override
animation'shimmer' | 'pulse' | 'wave' | 'none''shimmer'Animation mode
durationstring'1.5s'Animation cycle duration
delaystringundefinedAnimation delay
inlinebooleanfalseWhen true, renders with display: inline-block
asElementType'div'HTML tag to render as ('span', 'article', etc.)
visiblebooleantrueIf false, renders nothing (null)
loadingbooleanundefinedIf false, renders children instead of skeleton placeholder

Next Steps & Advanced Features

Assemble full templates or adjust responsiveness and theme tokens.