shape-morph
v0.4.0
Published
Material Design 3 shape morphing for the web. CSS clip-path, SVG, and React support.
Maintainers
Readme
shape-morph
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.
Documentation
Full docs, guides, and API reference at shape-morph.thereallo.dev.
Quick start
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,
});Contributing
# Install dependencies
bun install
# Build
bun run build
# Format
bun run fixDocs site
The documentation site lives in docs/ and is a standalone Next.js app powered by Fumadocs.
cd docs
bun install
bun run devLicense
MIT
