r/reactjs • u/Silver-Definition-64 • May 07 '25
Smart skeleton, automatic loader placeholder for react apps.
Showcasing @ela-labs/smart-skeleton-react: dynamic skeletons that follow your real layout
Hey folks 👋
I just released a small utility library that solves a recurring UI/UX issue: skeleton loaders that don't match the shape or structure of your content.
Meet @ela-labs/smart-skeleton-react, a skeleton component that automatically adapts to your rendered layout, creating a much more polished loading experience.
🔧 The Problem
Most skeleton libraries rely on predefined box sizes or static lines, which:
- Don't match the final layout of the content
- Require manual sizing and positioning
- Look weird or jumpy when content loads
✅ The Solution
This lib uses a layout-aware approach:
- Measures the size of the children via a hidden render phase
- Automatically draws skeleton blocks that match the real elements
- Keeps everything fully declarative
⚛️ Usage
Install it:
;
20
Upvotes
View all comments
2
u/Comprehensive-Lake53 May 08 '25
Interesting, I will try it out!