SwipeUI

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-loader
Variant
Preset
Material
Scheme
Feel
Interactive web demo. Native materials, gestures and system presentation differ on device.

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

PropDoes / default
variantPremium loading treatment. @default 'morph'
patternMorph 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'
statusMorph 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'
messagesSpoken names for the finished states. @default Done and Failed
activeCaller-owned loading visibility/lifecycle. Holds its pose when false. @default true
sizeDiameter in points. @default 64
thicknessStroke thickness as a share of size, for the morph strokes and the glitter tail. @default 0.1 for morph, 0.17 for glitter
labelNamed operation. @default 'Loading'
spinnerIcon-spin only: the built-in glyph that turns (retry, rays, petals, star, orbit). @default 'retry'
emojiIcon-spin only: an emoji to turn instead of a glyph, such as ⌛. Replaces spinner.
iconCustom rotating content; replaces spinner and emoji.
pivotIcon-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
colorSingle-colour override. @default primary token for morph, info token for the other styles
paletteGlitter only: colours spread along the tail, head first. @default original spectrum
glowGlitter only: a soft glow around the head. @default true
trailGlitter only: the solid tail behind the head. @default true
sparklesGlitter only: sparkles thrown off the head. @default true
motionShared ambient motion.
classNameRoot classes.
styleRoot style.
testIDRoot 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 ambient and morph motion roles, so it follows your app's feel. Pass motion to 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 onSupported
Expo SDK 57Yes
Expo SDK 58Yes
React Native CLI (with Expo modules)Yes
Expo GoYes
iOSYes
AndroidYes

This table describes API support and static bundle checks. Native runtime, device accessibility and bare Uniwind compatibility remain pending.

Related items