react-content-loader builds placeholder skeleton UIs with SVG for React DOM and React Native. Presets mimic common card and list layouts, with a custom mode for bespoke shapes.
Overview
This component library generates animated skeleton screens similar to social feed placeholders. Output is SVG on the web; React Native uses the same API with shapes from react-native-svg or bundled Rect and Circle exports.
You can pick ready-made presets (Facebook, Instagram, code, list, and bullet styles) or compose layouts in custom mode, including via an online generator. Colors, animation speed, RTL, opacity, and optional before-mask shapes are configurable on both platforms.
The web build is small and ships without runtime dependencies beyond React. Options cover accessibility titles, SSR-friendly uniqueKey for stable element ids, gradient width, and Safari workarounds using separate opacity props instead of rgba colors.
CDN usage via jsDelivr is documented alongside npm installation for React and React Native projects.
Key features
- SVG skeleton placeholder animations
- React DOM and React Native APIs
- Preset layouts and custom shapes
- Configurable colors and animation speed
- RTL and opacity controls
- Lightweight web bundle
- SSR stable keys support
- CDN distribution option
Use cases
- Feed card loading placeholders
- List and code block skeletons
- React Native loading screens
- Custom branded shimmer layouts
- Avoiding layout shift while data loads