Applies to every preview on the site.
Installation
One command copies the source into your app — you own the code and can change anything.
After you add the file, import it like any local component:
import { Skeleton } from "@/components/ui/skeleton";Or add it with the CLI (installs any missing peers):
Usage
useKit(). Wrap your app in <KitProvider accent="#6366f1" radius={14}> to re-skin every component at once.Like this? There's a lot more in Pro Pro
12 full screens built from the same kit — install them the same way.
Props
| Prop | Type | Default |
|---|---|---|
| width / height Block width and height, in points or percent. | DimensionValue | "100%" / 14 |
| radius Corner radius. 'capsule' follows the kit radius for bars; 'full' is always a pill / circle. | "sm" | "md" | "lg" | "xl" | "capsule" | "full" | number | "sm" |
| variant Angled light band sweeping all blocks as one wave, a staggered top-to-bottom brighten, an opacity pulse, or no motion. Every variant is static when reduce motion is on. | "shimmer" | "wave" | "pulse" | "static" | "shimmer" |
| color Block colour. | string | faint foreground |
| children Centred overlay inside the block (e.g. a faint glyph). | ReactNode | — |
| Skeleton.Text Paragraph placeholder with a slightly ragged edge. | { lines, lineHeight, gap, lastLineWidth } | 3 lines |
| Skeleton.Avatar Avatar placeholder. | { size, shape: "circle" | "rounded" } | 40, circle |
| Skeleton.Media Image block with a faint picture glyph in the centre. | { aspectRatio, height, width, glyph, glyphSize, radius } | 16 / 9, glyph off |
| Skeleton.List Rows with an avatar, two lines and a trailing pill. | { rows, avatarSize, avatarShape, trailing, dividers } | 4 rows, 44, circle, trailing on |
| Skeleton.Card Feed post: author row with menu, caption, media and an action bar. | { media, mediaHeight, header, lines, actions } | all on, 168 |
| Skeleton.Nav Screen chrome while content loads — app bar, list body, bottom tabs. | { header, back, actions, tabs, tabCount, rows, children } | header + 4 tabs + 4 rows |
| Skeleton.Group Frame the shimmer / wave travels across, so blocks inside line up as one wave (Nav and Reveal add one). | { style, children } | window |
| Skeleton.Reveal Shows `skeleton` while loading; then it dissolves, top-level children rise in with a stagger and the height glides between the two. | { loading, skeleton, children, stagger, animateHeight, loadingLabel } | —, 3 lines, —, 70, true, "Loading" |
| style Style for the block (composites apply it to their wrapper). | StyleProp<ViewStyle> | — |
| className Tailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides. | string | — |
Customization
You own the source file — tune appearance with props (no fork required for most tweaks). For brand-wide colours and radius, wrap your app in KitProvider; for one-off looks, use the style props below.
Design theme
Open Design theme on the live preview — accent, corner radius and font update every variant instantly (same as KitProvider in your app).
Variants
Pick the Variants chip above the preview, or set variant=… — "shimmer" | "wave" | "pulse" | "static".
Style props
React Native style and typed slots like fieldStyle, plus optional root className when you use NativeWind or Uniwind (cnProps from kit).
- variant
- "shimmer" | "wave" | "pulse" | "static" · default "shimmer"Angled light band sweeping all blocks as one wave, a staggered top-to-bottom brighten, an opacity pulse, or no motion. Every variant is static when reduce motion is on.
- color
- string · default faint foregroundBlock colour.
- style
- StyleProp<ViewStyle>Style for the block (composites apply it to their wrapper).
- className
- stringTailwind classes on the root when using NativeWind or Uniwind. Prefer style for StyleSheet overrides.
Map tokens from your design system on Bring your design system or read Theming for KitProvider and NativeWind / Uniwind setup.
Behaviour & accessibility
- Motion
- Every block reads one shared native-driver clock, so the shimmer band, wave or pulse moves across a Skeleton.Group (or the window) as a single sweep.
- Reduced motion
- Every variant renders static, and Skeleton.Reveal swaps the skeleton for content instantly.
- Screen readers
- Placeholder blocks are hidden from screen readers. Skeleton.Reveal is marked busy and exposes a progressbar named by loadingLabel; the content arrives in a polite live region.
- Platforms
- Plain Animated views plus a react-native-svg gradient, so it runs the same on iOS, Android and web.
Source
FAQ
How do I make a skeleton loader in React Native?
npx @expokit/cli@latest add skeleton in your Expo or React Native project and it copies a ready-made skeleton loader into your app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.Does Skeleton work in Expo Go?
react-native-svg) are all included in Expo Go.How do I add Skeleton to my Expo app?
npx @expokit/cli@latest add skeleton in your project. The CLI copies the component's source into your app and installs react-native-svg, so the code is yours to change.Is Skeleton free?
Can I change how Skeleton looks?
useKit(), so wrapping your app in <KitProvider accent radius> re-skins it with every other ExpoKit component. The code lives in your project, so you can also edit anything directly.