Animated React components you copy into your app. Built with Motion and Base UI, with Remold for the morphing: text, icons, shapes, particles and canvas scenes.
- Components you copy into your app. Inputs, menus, checkouts, dashboards and more, each animating only the change that matters. They are built on Base UI for behaviour and accessibility, and most of their movement is Motion: springs, enter and exit, shared elements. You install them from a shadcn registry and own the code.
- Remold, for the morphing. A small library for the moments one thing turns into another: text that changes letter by letter, icons and SVG shapes that reshape, layouts that rearrange without ids, connector lines that stay attached, and on canvas, thousands of particles that re-form and scenes that spring between layouts. It works in React, or with plain JavaScript and any UI library.
Remold is not a replacement for Motion or GSAP. Use those for springs, gestures and enter and exit animations, and reach for Remold where a morph says more than a fade. @remold-ui/morph only does the geometry, so you can drive it from either.
Every component on remoldui.xyz has an install command. It copies the source into components/remold/ and adds the packages it needs.
npx shadcn@latest add https://remoldui.xyz/r/otp-input.jsonnpm install @remold-ui/reactimport { Remold } from "@remold-ui/react";
// Re-sorting moves each row from where it was to where it is now.
export function Tasks({ tasks, sort }) {
return (
<Remold.Morph trigger={sort}>
{tasks.map((task) => (
<TaskRow key={task.id} task={task} />
))}
</Remold.Morph>
);
}
// "Follow" becomes "Following": the letters they share stay, and "ing" arrives.
export function FollowLabel({ following }) {
return <Remold.Text>{following ? "Following" : "Follow"}</Remold.Text>;
}
// The menu icon's strokes reshape into the close icon.
export function MenuButton({ open }) {
return <Remold.Icon icon={open ? <CloseIcon /> : <MenuIcon />} />;
}npm install @remold-ui/domtransition() takes an element and a function that changes what is inside it. Remold reads the page before and after, and moves what moved.
import { morphText, transition } from "@remold-ui/dom";
transition(list, () => {
list.replaceChildren(...sortedTasks.map(renderRow));
});
morphText(followLabel, "Following");| React | Plain JavaScript | What it does |
|---|---|---|
Remold.Morph |
transition() |
Animates everything that moved, resized, appeared or left when a value changes. |
Remold.Text |
morphText() |
Changes text letter by letter: shared letters slide, the rest fade. |
Remold.Icon |
iconToPath() + createMorph() |
Reshapes one icon into the next, from any icon set. |
Remold.PathGroup |
createMorph() |
Morphs an illustration made of several paths. |
Remold.Connectors |
connectors() |
Lines between elements that stay attached while they move. |
Remold.Tour |
Walks people through an interface one step at a time. | |
Remold.Particles |
particles() |
Rebuilds thousands of dots into any word, shape or image. |
Remold.Scene · Remold.Canvas |
scene() · painter() |
Canvas scenes that spring between layouts, and a canvas you paint yourself. |
Remold.Globe · Remold.DotGrid |
globe() · dotGrid() |
A dotted globe, and a dot grid that answers the cursor. |
The canvas parts come from @remold-ui/react/canvas, so an interface that doesn't use them never ships canvas code. Everything follows prefers-reduced-motion, and morphing text stays real text for screen readers.
| Package | |
|---|---|
@remold-ui/react |
React components and hooks. |
@remold-ui/dom |
The same building blocks for plain JavaScript or any UI library. |
@remold-ui/canvas |
Particles, scenes, the globe and the dot grid without React. |
@remold-ui/morph |
SVG path morphing on its own, for Motion, GSAP or your own renderer. |
@remold-ui/core |
The maths underneath: morphing, matching and springs, with no DOM. |
The packages are versioned together and ship ESM and CommonJS with types.
Needs Node 22.12 or newer and pnpm 10.
pnpm install # once
pnpm dev # builds the packages and starts the docs at localhost:5192
pnpm test # every package's tests
pnpm typecheck # every package and the docs
pnpm lint # Biome
pnpm build # everything; Turborepo skips what hasn't changedThe library lives in packages/, and the docs site with every component is apps/docs.
Issues and pull requests are welcome.
- Keep the change focused, and add a changeset with
pnpm changesetif users will notice it. - Run the checks before you push:
pnpm lint && pnpm typecheck && pnpm test. - Components solve a specific problem. Animate the one change that matters, and leave the rest still.
Releases are described in RELEASING.md.
Base UI for behaviour and accessibility, Motion for springs and shared-element animation, and Hugeicons for icons. The currency converter's rates come from ExchangeRate-API.
MIT © Albert Dugba