Wrap any React or React Native component with
<AutoSkeleton isLoading={true}>
and get perfectly-matched shimmer placeholders — automatically.
AutoSkeleton does the heavy lifting so you can focus on building great products.
From install to production-ready skeletons in under a minute.
All props are optional except isLoading and children.
| Prop | Type | Default | Description |
|---|---|---|---|
| isLoading | boolean | — | Controls whether to show skeleton or real content. |
| children | ReactNode | — | The actual component(s) to render when loaded. |
| animation | 'wave' | 'pulse' | 'none' | 'wave' | Animation style for the skeleton shimmer effect. |
| theme | 'light' | 'dark' | 'auto' | 'light' | Color scheme. 'auto' follows the OS preference. |
| borderRadius | number | string | 6 | Border radius applied to block skeleton elements. |
| speed | number | 1.6 | Animation cycle duration in seconds. |
| baseColor | string | '#e0e0e0' | The primary (darker) background color of the skeleton. |
| highlightColor | string | '#f5f5f5' | The highlight (lighter) color used in the shimmer sweep. |
| delay | number | 0 | Milliseconds to wait before showing skeleton (avoids flash on fast loads). |
| skipComponents | string[] | [] | Component display names to exclude from skeleton rendering. |
| debug | boolean | false | Shows dashed red outlines around detected skeleton elements. |
Can't find your answer? Open an issue on GitHub.
It takes one command to install and one prop to activate. No excuses.