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 { DotLoader } from "@/components/ui/dot-loader";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 |
|---|---|---|
| variant 91 patterns. curve: rose-two, rose-three, rose-four, rose-five, rose-orbit, bloom-five, bloom-seven, bloom-nine, lissajous, lissajous-knot, lemniscate, hypotrochoid, epitrochoid, cardioid, astroid, deltoid, butterfly, trefoil, heart, spiral. glyph: thinking, searching, writing, code, asking, loading, heart, check, download, upload, sparkle, signal. pattern: ripple, diagonal, rain, snake, spiral, checker, scan, cross, rings. DOT_LOADER_VARIANTS lists them all. | AI state ("thinking" | "searching" | "parsing" | "writing" | "compiling" | "analyzing" | "updating" | "verifying" | "designing" | "recording" | "organizing" | "sorting" | "streaming" | "listening" | "deploying" | "finishing" | "connecting" | "uploading" | "calculating" | "exploring" | "summarizing" | "syncing" | "encrypting" | "loading" | "learning" | "fetching" | "translating" | "saving" | "planning" | "drafting" | "building" | "testing" | "researching" | "exporting" | "importing" | "reasoning" | "debugging" | "generating" | "rendering" | "merging" | "training" | "transcribing" | "optimizing" | "indexing" | "mapping" | "scanning" | "filtering" | "publishing" | "processing" | "downloading") | curve | `pixel-${glyph}` | `grid-${pattern}` | "thinking" |
| size 24 / 40 / 64 / 96pt, or any number. Dots scale with it. | "sm" | "md" | "lg" | "xl" | number | "md" |
| color Dot colour. | string | theme foreground |
| accent Highlight dots: the cursor, check mark, lens, active strand. | string | theme accent |
| speed Speed multiplier. | number | 1 |
| label Accessibility label; shown on screen when labelPosition is set. | string | variant name |
| labelPosition Show the label beside or under the dots, with trailing dots that tick. | "none" | "right" | "bottom" | "none" |
| style Style for the root view. | 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=… — AI state ("thinking" | "searching" | "parsing" | "writing" | "compiling" | "analyzing" | "updating" | "verifying" | "designing" | "recording" | "organizing" | "sorting" | "streaming" | "listening" | "deploying" | "finishing" | "connecting" | "uploading" | "calculating" | "exploring" | "summarizing" | "syncing" | "encrypting" | "loading" | "learning" | "fetching" | "translating" | "saving" | "planning" | "drafting" | "building" | "testing" | "researching" | "exporting" | "importing" | "reasoning" | "debugging" | "generating" | "rendering" | "merging" | "training" | "transcribing" | "optimizing" | "indexing" | "mapping" | "scanning" | "filtering" | "publishing" | "processing" | "downloading") | curve | `pixel-${glyph}` | `grid-${pattern}`.
Style props
React Native style and typed slots like fieldStyle, plus optional root className when you use NativeWind or Uniwind (cnProps from kit).
- variant
- AI state ("thinking" | "searching" | "parsing" | "writing" | "compiling" | "analyzing" | "updating" | "verifying" | "designing" | "recording" | "organizing" | "sorting" | "streaming" | "listening" | "deploying" | "finishing" | "connecting" | "uploading" | "calculating" | "exploring" | "summarizing" | "syncing" | "encrypting" | "loading" | "learning" | "fetching" | "translating" | "saving" | "planning" | "drafting" | "building" | "testing" | "researching" | "exporting" | "importing" | "reasoning" | "debugging" | "generating" | "rendering" | "merging" | "training" | "transcribing" | "optimizing" | "indexing" | "mapping" | "scanning" | "filtering" | "publishing" | "processing" | "downloading") | curve | `pixel-${glyph}` | `grid-${pattern}` · default "thinking"91 patterns. curve: rose-two, rose-three, rose-four, rose-five, rose-orbit, bloom-five, bloom-seven, bloom-nine, lissajous, lissajous-knot, lemniscate, hypotrochoid, epitrochoid, cardioid, astroid, deltoid, butterfly, trefoil, heart, spiral. glyph: thinking, searching, writing, code, asking, loading, heart, check, download, upload, sparkle, signal. pattern: ripple, diagonal, rain, snake, spiral, checker, scan, cross, rings. DOT_LOADER_VARIANTS lists them all.
- size
- "sm" | "md" | "lg" | "xl" | number · default "md"24 / 40 / 64 / 96pt, or any number. Dots scale with it.
- color
- string · default theme foregroundDot colour.
- accent
- string · default theme accentHighlight dots: the cursor, check mark, lens, active strand.
- style
- StyleProp<ViewStyle>Style for the root view.
- 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
- One looping clock per loader; every dot's position, opacity and scale is pre-sampled from the pattern and interpolated on the native driver. Properties that never change stay static.
- Reduced motion
- The loop stops and each loader holds one clear frame (the check drawn, the pyramid built, the glyph showing); the label shows a still ellipsis.
- Screen readers
- Announced as a progress bar with state busy and your label (default: the variant, e.g. "Thinking"); the dots are one accessible element.
- Platforms
- Plain React Native Animated views — iOS, Android, Expo Go and web, no native setup and no SVG.
Source
FAQ
How do I make an ai loader in React Native?
npx @expokit/cli@latest add dot-loader in your Expo or React Native project and it copies a ready-made ai loader into your app as plain TypeScript you can edit. It works on iOS, Android and web, and in Expo Go.Does Dot Loader work in Expo Go?
How do I add Dot Loader to my Expo app?
npx @expokit/cli@latest add dot-loader in your project. The CLI copies the component's source into your app, so the code is yours to change.Is Dot Loader free?
Can I change how Dot Loader 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.