Morph loader
Three bold strokes that morph between four loops and fold into a tick or a cross, plus a solid glitter comet and steady icon and emoji spinners.
npx @swipeui/cli add morph-loaderVariant
Preset
Material
Scheme
Feel
When to use it
- Branded or expressive waits with no known completion amount.
- A save, sync or upload that should end in a clear success or failure in the same spot.
When not to use it
- Known completion: use Progress. Plain system waits: use Spinner.
Installation
Installs with a Pro licence
Everything on this page is public except the source. Founder pre-sale opens around 5 January 2027.
Usage
<MorphLoader label="Saving changes" status={saved ? 'success' : 'loading'} />Feedback lineup settings
| Prop | Does / default |
|---|---|
variant | Premium loading treatment. @default 'morph' |
pattern | Morph style only: the loop its three strokes run (aperture, lines, fan, wave). Changing it while loading morphs the strokes into the new loop. @default 'aperture' |
status | Morph style only. success folds the strokes into a tick and error into a cross, in the matching colour; loading gathers them into the loop again. @default 'loading' |
messages | Spoken names for the finished states. @default Done and Failed |
active | Caller-owned loading visibility/lifecycle. Holds its pose when false. @default true |
size | Diameter in points. @default 64 |
thickness | Stroke thickness as a share of size, for the morph strokes and the glitter tail. @default 0.1 for morph, 0.17 for glitter |
label | Named operation. @default 'Loading' |
spinner | Icon-spin only: the built-in glyph that turns (retry, rays, petals, star, orbit). @default 'retry' |
emoji | Icon-spin only: an emoji to turn instead of a glyph, such as ⌛. Replaces spinner. |
icon | Custom rotating content; replaces spinner and emoji. |
pivot | Icon-spin only: the point the icon turns around, as shares of its own box. Set it to the icon's centre of mass when the artwork is not centred, so it spins without wobbling. @default the glyph's own centre for spinner, the box centre for emoji and icon |
color | Single-colour override. @default primary token for morph, info token for the other styles |
palette | Glitter only: colours spread along the tail, head first. @default original spectrum |
glow | Glitter only: a soft glow around the head. @default true |
trail | Glitter only: the solid tail behind the head. @default true |
sparkles | Glitter only: sparkles thrown off the head. @default true |
motion | Shared ambient motion. |
className | Root classes. |
style | Root style. |
testID | Root identifier. |
Behavior and gestures
- Static. Every style turns at a steady speed while active and holds its pose when paused. The morph style folds into a tick or a cross when status changes.
Accessibility
- Announced as a busy progress indicator with its label, such as "Saving changes".
- A finished status is announced politely with its message ("Done" or "Failed" by default).
- Under Reduce Motion the morph style holds a still mark and shows the label; results still appear.
- Colour comes from your theme tokens.
Motion
- Uses the
ambientandmorphmotion roles, so it follows your app's feel. Passmotionto tune this one instance. - One steady UI-thread clock; a beat is the ambient duration. Pattern changes and the result fold use the morph spring. Offscreen/background pause, still mark under Reduce Motion.
Performance
- The morph style redraws one three-stroke path per frame on the UI thread. Glitter draws its tail once and only rotates it, plus seven small sparkle paths. Both pause offscreen and in the background. Native performance remains pending.
Notes for AI
- Pro native source; public demonstration is independently implemented. Drive status from your own request state and keep one pattern per product. For icon-spin pass spinner, an emoji, or your own icon with a pivot at its centre of mass.
Compatibility
| Runs on | Supported |
|---|---|
| Expo SDK 57 | Yes |
| Expo SDK 58 | Yes |
| React Native CLI (with Expo modules) | Yes |
| Expo Go | Yes |
| iOS | Yes |
| Android | Yes |
This table describes API support and static bundle checks. Native runtime, device accessibility and bare Uniwind compatibility remain pending.