Package Exports
- skeleton-ghost-loader
- skeleton-ghost-loader/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (skeleton-ghost-loader) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
skeletonloader
A Tailwind CSS–based, structure-preserving skeleton loader for React.
skeletonloader automatically converts your existing JSX into skeleton placeholders while keeping the exact layout and styling, by reusing the same className (Tailwind utilities).
✅ No DOM measurement
✅ No layout shift
✅ SSR / Next.js safe
✅ Zero config
✅ Tailwind-native
✨ Features
- 🧱 Preserves structure – DOM tree stays the same
- 🎨 Uses Tailwind classes – width, height, radius come from
className - 🌗 Dark mode support – works with
dark:utilities - ⏸ Disable animation – optional pulse control
- ⛔ Skip skeleton – exclude specific components
- ⚡ Lightweight – no extra dependencies
📦 Installation
npm install skeletonloader