React Loading Skeleton renders animated placeholder shapes that size themselves to match surrounding typography and layout while content loads.
Overview
React Loading Skeleton is a React package that shows shimmering placeholder elements where real content will appear. You place Skeleton components directly in your UI instead of maintaining separate skeleton screen layouts.
Placeholders inherit dimensions from parent styles, so headings and body text blocks get appropriately sized skeleton lines without manual width and height tuning. A SkeletonTheme wrapper can set base color, highlight color, and shared sizing for all skeletons below it in the tree.
Individual skeletons support multiple lines, circular avatars, custom wrappers, animation direction, duration, and optional static coloring when animation is disabled. Theming props control colors, border radius, and inline versus stacked line layout.
The intended pattern is built-in loading states inside each component rather than dedicated skeleton pages, so layout changes stay aligned with the loaded view.
Key features
- Auto-sized skeleton lines
- SkeletonTheme shared styling
- Multi-line and circle shapes
- Configurable animation colors
- Custom wrapper components
- Disable animation option
- Custom highlight gradients
- Container test id support
Use cases
- Inline content loading states
- Blog post title and body placeholders
- List and card loading layouts
- Flex layout loading fixes