# dissolve > dissolve (npm package `dissolve-ui`, version 0.0.8, MIT) is an open source animation library for React Native with 36 animated UI components for React Native and React. Components are copied into your app as source with `npx dissolve-ui add ` or the shadcn CLI. The React Native engine snapshots any view with Skia, cuts it into grains and animates them on the UI thread with Reanimated 4. - Website: https://dissolve.rselmi.com/ - Source: https://github.com/dissolve-ui/dissolve - npm: https://www.npmjs.com/package/dissolve-ui - React Native setup: `npx expo install dissolve-ui @shopify/react-native-skia react-native-reanimated react-native-worklets react-native-gesture-handler expo-haptics`, then wrap the root layout once in `` from `dissolve-ui`. - Add a component: `npx dissolve-ui add --native` (React Native, needs NativeWind v5) or `npx dissolve-ui add --web` (React 19 and react-dom only). - shadcn: `npx shadcn@latest add https://dissolve.rselmi.com/r/.json` (React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/native/.json` (React Native). - MCP server for coding agents: `npx -y dissolve-ui-mcp`. Claude skill: https://dissolve.rselmi.com/skills/dissolve/SKILL.md ## Docs - [Introduction](https://dissolve.rselmi.com/docs/introduction/): Animated components you own, for React Native and React. npx dissolve-ui add copies the source into your app; the React Native engine turns any view into dust (Skia, Reanimated 4). Markdown: https://dissolve.rselmi.com/docs/introduction.md - [Agent prompt](https://dissolve.rselmi.com/docs/agent-prompt/): The fastest way to set up dissolve. Paste this prompt into your coding agent: it installs the engine, sets up NativeWind and adds the components you want. Markdown: https://dissolve.rselmi.com/docs/agent-prompt.md - [Installation](https://dissolve.rselmi.com/docs/installation/): Paste one prompt into your coding agent and it sets up everything: engine, provider, NativeWind and components. Or follow the steps by hand. Markdown: https://dissolve.rselmi.com/docs/installation.md - [CLI](https://dissolve.rselmi.com/docs/cli/): Copy components into your project, the shadcn way. The source is yours to read, edit and restyle. Markdown: https://dissolve.rselmi.com/docs/cli.md - [Theming](https://dissolve.rselmi.com/docs/theming/): Twelve tokens, light and dark. Change them once and every component follows, or override one instance with a className. Markdown: https://dissolve.rselmi.com/docs/theming.md ## Components - [SwipeToDelete](https://dissolve.rselmi.com/components/swipe-to-delete/): Swipe a row left to delete it: it dissolves, then the list closes up. Install: `npx dissolve-ui add swipe-to-delete` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/swipe-to-delete.json`. Markdown: https://dissolve.rselmi.com/components/swipe-to-delete.md - [Toast](https://dissolve.rselmi.com/components/toast/): Toasts that arrive in grains and leave as dust, with an optional Undo action. Install: `npx dissolve-ui add toast` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/toast.json`. Markdown: https://dissolve.rselmi.com/components/toast.md - [GlossyButton](https://dissolve.rselmi.com/components/glossy-button/): Tactile pill lit from the inside: gradient stroke, inner light and ring, presses down on a crisp spring. Install: `npx dissolve-ui add glossy-button` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/glossy-button.json`. Markdown: https://dissolve.rselmi.com/components/glossy-button.md - [LikeButton](https://dissolve.rselmi.com/components/like-button/): Heart that pops with sparks on like and snaps into grains on unlike. Install: `npx dissolve-ui add like-button` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/like-button.json`. Markdown: https://dissolve.rselmi.com/components/like-button.md - [MorphButton](https://dissolve.rselmi.com/components/morph-button/): Dynamic Island style pill that folds into a loader, then opens as the done state. Install: `npx dissolve-ui add morph-button` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/morph-button.json`. Markdown: https://dissolve.rselmi.com/components/morph-button.md - [SplitButton](https://dissolve.rselmi.com/components/split-button/): Splits in two like a drop of liquid metal, Cancel and Confirm halves. Install: `npx dissolve-ui add split-button` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/split-button.json`. Markdown: https://dissolve.rselmi.com/components/split-button.md - [GooeyMenu](https://dissolve.rselmi.com/components/gooey-menu/): Floating button whose actions pour out as gooey drops. Install: `npx dissolve-ui add gooey-menu` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/gooey-menu.json`. Markdown: https://dissolve.rselmi.com/components/gooey-menu.md - [SlideToConfirm](https://dissolve.rselmi.com/components/slide-to-confirm/): Slide to pay or confirm, shimmer label, loader, done state. Install: `npx dissolve-ui add slide-to-confirm` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/slide-to-confirm.json`. Markdown: https://dissolve.rselmi.com/components/slide-to-confirm.md - [OTPInput](https://dissolve.rselmi.com/components/otp-input/): One time code boxes, verify sweep, success tint, shake and dust on reject. Install: `npx dissolve-ui add otp-input` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/otp-input.json`. Markdown: https://dissolve.rselmi.com/components/otp-input.md - [NumberTicker](https://dissolve.rselmi.com/components/number-ticker/): Rolling digit columns for prices and counters, locale aware. Install: `npx dissolve-ui add number-ticker` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/number-ticker.json`. Markdown: https://dissolve.rselmi.com/components/number-ticker.md - [ReactionPicker](https://dissolve.rselmi.com/components/reaction-picker/): iMessage style reactions: long press, dock magnifier, emoji flies to a badge. Install: `npx dissolve-ui add reaction-picker` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/reaction-picker.json`. Markdown: https://dissolve.rselmi.com/components/reaction-picker.md - [VoiceNote](https://dissolve.rselmi.com/components/voice-note/): Voice message bubble: play, scrub the waveform with ticks, unsend as dust. Install: `npx dissolve-ui add voice-note` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/voice-note.json`. Markdown: https://dissolve.rselmi.com/components/voice-note.md - [SignaturePad](https://dissolve.rselmi.com/components/signature-pad/): Variable width Skia signature, undo, clear into dust, PNG export. Install: `npx dissolve-ui add signature-pad` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/signature-pad.json`. Markdown: https://dissolve.rselmi.com/components/signature-pad.md - [CardStack](https://dissolve.rselmi.com/components/card-stack/): Wallet style card stack: tap to focus, drag down to put back, swipe to cycle. Install: `npx dissolve-ui add card-stack` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/card-stack.json`. Markdown: https://dissolve.rselmi.com/components/card-stack.md - [BeforeAfter](https://dissolve.rselmi.com/components/before-after/): Before / after image comparison with a draggable divider and haptic ticks. Install: `npx dissolve-ui add before-after` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/before-after.json`. Markdown: https://dissolve.rselmi.com/components/before-after.md - [ThinkingOrb](https://dissolve.rselmi.com/components/thinking-orb/): A sphere of dots that shows what an AI agent is doing: thinking, searching, listening, done. Install: `npx dissolve-ui add thinking-orb` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/thinking-orb.json`. Markdown: https://dissolve.rselmi.com/components/thinking-orb.md - [ImageReveal](https://dissolve.rselmi.com/components/image-reveal/): Image generation loader: a thinking mosaic that resolves coarse to fine, then settles in grains. Install: `npx dissolve-ui add image-reveal` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/image-reveal.json`. Markdown: https://dissolve.rselmi.com/components/image-reveal.md - [SweepTransition](https://dissolve.rselmi.com/components/sweep-transition/): A crisp liquid band sweeps across a view and leaves the new state behind it. Install: `npx dissolve-ui add sweep-transition` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/sweep-transition.json`. Markdown: https://dissolve.rselmi.com/components/sweep-transition.md - [UploadTile](https://dissolve.rselmi.com/components/upload-tile/): Attachment that assembles from grains, fills a progress ring, rejected files leave as dust. Install: `npx dissolve-ui add upload-tile` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/upload-tile.json`. Markdown: https://dissolve.rselmi.com/components/upload-tile.md - [TaskCheck](https://dissolve.rselmi.com/components/task-check/): Checkbox that draws its check and strikes the label, then the task moves away or dissolves. Install: `npx dissolve-ui add task-check` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/task-check.json`. Markdown: https://dissolve.rselmi.com/components/task-check.md - [QuantityStepper](https://dissolve.rselmi.com/components/quantity-stepper/): Minus and plus with rolling digits and an accelerating long press; at 1 it turns into a trash. Install: `npx dissolve-ui add quantity-stepper` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/quantity-stepper.json`. Markdown: https://dissolve.rselmi.com/components/quantity-stepper.md - [RulerPicker](https://dissolve.rselmi.com/components/ruler-picker/): Horizontal ruler with momentum, rolling value and a haptic tick per graduation. Install: `npx dissolve-ui add ruler-picker` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/ruler-picker.json`. Markdown: https://dissolve.rselmi.com/components/ruler-picker.md - [BarChart](https://dissolve.rselmi.com/components/bar-chart/): Bar chart you scrub with a finger, sliding bubble, bars regrow on period change. Install: `npx dissolve-ui add bar-chart` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/bar-chart.json`. Markdown: https://dissolve.rselmi.com/components/bar-chart.md - [MiniPlayer](https://dissolve.rselmi.com/components/mini-player/): Now playing pill that opens into a full player as one object, then folds back. Install: `npx dissolve-ui add mini-player` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/mini-player.json`. Markdown: https://dissolve.rselmi.com/components/mini-player.md - [PullToRefresh](https://dissolve.rselmi.com/components/pull-to-refresh/): Pull a list down: grains gather into a loader, release and the content rebuilds itself. Install: `npx dissolve-ui add pull-to-refresh` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/pull-to-refresh.json`. Markdown: https://dissolve.rselmi.com/components/pull-to-refresh.md - [ReorderList](https://dissolve.rselmi.com/components/reorder-list/): Long press a row to lift it, drag to reorder, the others make room, it settles with a tick. Install: `npx dissolve-ui add reorder-list` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/reorder-list.json`. Markdown: https://dissolve.rselmi.com/components/reorder-list.md - [ScratchCard](https://dissolve.rselmi.com/components/scratch-card/): Glossy foil scratch card that tilts in 3D under the finger, sheds grains, then dissolves past the threshold. Install: `npx dissolve-ui add scratch-card` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/scratch-card.json`. Markdown: https://dissolve.rselmi.com/components/scratch-card.md - [Skeleton](https://dissolve.rselmi.com/components/skeleton/): Loading placeholders that break into grains and recompose into the real content, block by block. Install: `npx dissolve-ui add skeleton` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/skeleton.json`. Markdown: https://dissolve.rselmi.com/components/skeleton.md - [SegmentedControl](https://dissolve.rselmi.com/components/segmented-control/): iOS segmented control whose pill breaks into grains, flows to the new segment and reassembles. Drag across to follow the finger. Install: `npx dissolve-ui add segmented-control` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/segmented-control.json`. Markdown: https://dissolve.rselmi.com/components/segmented-control.md - [Toggle](https://dissolve.rselmi.com/components/toggle/): iOS switch whose thumb breaks into grains, flows to the other end of the track and reassembles while the track fills. Install: `npx dissolve-ui add toggle` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/toggle.json`. Markdown: https://dissolve.rselmi.com/components/toggle.md - [ProgressSteps](https://dissolve.rselmi.com/components/progress-steps/): Numbered steps on a line, or story style bars: the progress streams on to the next step in grains. Install: `npx dissolve-ui add progress-steps` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/progress-steps.json`. Markdown: https://dissolve.rselmi.com/components/progress-steps.md - [ElasticSlider](https://dissolve.rselmi.com/components/elastic-slider/): Thick rounded slider whose texts invert over the fill; pulled past an end, the track stretches like a rubber band and snaps back. Install: `npx dissolve-ui add elastic-slider` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/elastic-slider.json`. Markdown: https://dissolve.rselmi.com/components/elastic-slider.md - [Accordion](https://dissolve.rselmi.com/components/accordion/): Expandable sections: the height glides open, the chevron turns over and the content slides in. Install: `npx dissolve-ui add accordion` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/accordion.json`. Markdown: https://dissolve.rselmi.com/components/accordion.md - [CopyButton](https://dissolve.rselmi.com/components/copy-button/): Icon button that copies text: the copy icon breaks into grains that reform as a check, a Copied tooltip rises. Install: `npx dissolve-ui add copy-button` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/copy-button.json`. Markdown: https://dissolve.rselmi.com/components/copy-button.md - [AvatarStack](https://dissolve.rselmi.com/components/avatar-stack/): Overlapping avatars with a +N chip: hover or hold to spread them with names, adding or removing one animates the stack. Install: `npx dissolve-ui add avatar-stack` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/avatar-stack.json`. Markdown: https://dissolve.rselmi.com/components/avatar-stack.md - [Tooltip](https://dissolve.rselmi.com/components/tooltip/): A label with an arrow on hover, focus or long press: it grows in, flips and slides to stay on screen. Install: `npx dissolve-ui add tooltip` (`--native` for React Native, `--web` for React) or `npx shadcn@latest add https://dissolve.rselmi.com/r/tooltip.json`. Markdown: https://dissolve.rselmi.com/components/tooltip.md ## Effects - [Dust](https://dissolve.rselmi.com/effects/dust/): Any view snapshots into grains that drift away on the wind, left edge first. Markdown: https://dissolve.rselmi.com/effects/dust.md - [Sand](https://dissolve.rselmi.com/effects/sand/): Grains pour straight down with gravity and slide out of frame. Markdown: https://dissolve.rselmi.com/effects/sand.md - [Ember](https://dissolve.rselmi.com/effects/ember/): Burns from the edge and rises as sparks tinted by the view itself. Markdown: https://dissolve.rselmi.com/effects/ember.md - [Pixel](https://dissolve.rselmi.com/effects/pixel/): A blocky, stepped collapse for retro and game UIs. Markdown: https://dissolve.rselmi.com/effects/pixel.md - [Vortex](https://dissolve.rselmi.com/effects/vortex/): Grains spiral into the center and vanish. Markdown: https://dissolve.rselmi.com/effects/vortex.md - [Shatter](https://dissolve.rselmi.com/effects/shatter/): Glass shards break away from the point of impact. Markdown: https://dissolve.rselmi.com/effects/shatter.md - [Stream](https://dissolve.rselmi.com/effects/stream/): The view flies into a target, like a file dropped in the trash. Markdown: https://dissolve.rselmi.com/effects/stream.md - [Gather](https://dissolve.rselmi.com/effects/gather/): Grains converge from a loose cloud into the view. Markdown: https://dissolve.rselmi.com/effects/gather.md - [Rain](https://dissolve.rselmi.com/effects/rain/): Grains fall and settle, bottom row first. Markdown: https://dissolve.rselmi.com/effects/rain.md - [Print](https://dissolve.rselmi.com/effects/print/): The view is printed in, line by line. Markdown: https://dissolve.rselmi.com/effects/print.md - [Snap](https://dissolve.rselmi.com/effects/snap/): Bursts outward from the exact point you touched. Markdown: https://dissolve.rselmi.com/effects/snap.md - [Fling](https://dissolve.rselmi.com/effects/fling/): Follows the velocity of the swipe that threw it away. Markdown: https://dissolve.rselmi.com/effects/fling.md - [Charge](https://dissolve.rselmi.com/effects/charge/): Hold to heat the view up, it bursts at full charge. Markdown: https://dissolve.rselmi.com/effects/charge.md - [Morph](https://dissolve.rselmi.com/effects/morph/): View A breaks down and rebuilds itself as view B. Markdown: https://dissolve.rselmi.com/effects/morph.md - [Peel](https://dissolve.rselmi.com/effects/peel/): Peels off from the corner like a sticker, then flies away. Markdown: https://dissolve.rselmi.com/effects/peel.md - [Melt](https://dissolve.rselmi.com/effects/melt/): Melts down in drips, like wax under a lamp. Markdown: https://dissolve.rselmi.com/effects/melt.md ## Optional - [Every page in one file](https://dissolve.rselmi.com/llms-full.txt): the docs, every component and every effect as markdown. - [shadcn registry](https://dissolve.rselmi.com/r/registry.json): every installable item. - [Changelog](https://github.com/dissolve-ui/dissolve/blob/main/CHANGELOG.md)