Menu to close, play to pause, plus to check, sun to moon: each pair is one set of paths in two poses, so lines rotate and stretch into place on a spring and reverse cleanly mid-way.
akaanimated icons·icon morph·hamburger menu
Run this in any project set up for the shadcn CLI. It copies the Morph Icons source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/morph-icons.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { MorphIcon } from "@/components/morph-icons";
export default function Page() {
return <MorphIcon />;
}A free React motion component in the Surfaces collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Morph Icons source. Everything is optional unless it says required. It also accepts Omit<ComponentProps<"svg">, "children">.
| Prop | Type | Default |
|---|---|---|
| namerequired | MorphIconName | — |
| morphedrequired | boolean | — |