Skip to content
tastebase

tastebase

Sign in

Your agent gets your look, hearts and dislikes in every project. Folders follow you to every device.

We keep the name, avatar and email your provider shares. Nothing else.

morphicons

free

Morphs any SVG icon into any other with spring physics: Lucide, Phosphor, Tabler, stroked or filled.

by Guillermo López GitHub npm
visit
morphicons website

Try these

lucide-animated

Lucide icons with hand-tuned Motion animations, copied in through the shadcn CLI.

Its Hover

Motion-powered animated icons, including brand and tech logos, copied in through the shadcn CLI.

Lucide

Clean 24px stroke icons, one component per icon, the default set for shadcn/ui.

Phosphor Icons

Large icon family in six weights: thin, light, regular, bold, fill and duotone.

For your agent

Install
npm i morphicons lucide
Use it for
  • an icon that turns into another on state change: menu to close, play to pause, copy to check
  • toggle buttons whose icon should morph instead of swapping (mute, theme, expand/collapse)
  • morphing Lucide or Phosphor icons without hand-made animated variants
Skip it when
  • an icon that only wiggles on hover: use lucide-animated
  • a static icon with no state change: use lucide or phosphor directly
  • long choreographed SVG shape animations beyond icons: use gsap (MorphSVG)
What's inside13 free
  • MorphIcon (React)
  • MorphIcon (Vue)
  • MorphIcon (Svelte)
  • MorphIcon (React Native)
  • MorphIcon (Astro)
  • <morph-icon> element
  • createMorph()
  • Spring presets (snappy, smooth, bouncy)
  • Fill icons (morphicons/region)
  • svgToIcon
  • maskTarget
  • canvasTarget
  • fitIcon
Facts
Frameworks
react, vue, svelte, solid, angular, vanilla, react-native
Styling
unstyled
Weight
small
Accessibility
ok
Maturity
stable
License
MIT
Price
Free
Pairs with
Alternatives
Compare morphicons with its alternatives
import { MorphIcon } from 'morphicons/react'
import { Menu, X } from 'lucide'

<button onClick={() => setOpen((o) => !o)} aria-expanded={open} aria-label="Menu">
  <MorphIcon icon={open ? X : Menu} size={20} reducedMotion="user" />
</button>
Visit