Material Design 3 shape morphing for the web. Port of Android's androidx.graphics.shapes to TypeScript.
35 preset shapes, feature-matched morphing, SVG paths, CSS clip-path, and React components.
Full docs, guides, and API reference at shape-morph.thereallo.dev.
bun install shape-morph
# or any other package managerimport { useMorph } from "shape-morph/react";
const { clipPath } = useMorph("Circle", "Heart", {
progress: hovered ? 1 : 0,
duration: 300,
});# Install dependencies
bun install
# Build
bun run build
# Format
bun run fixThe documentation site lives in docs/ and is a standalone Next.js app powered by Fumadocs.
cd docs
bun install
bun run devMIT