# morphicons

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

Source: https://tastebase.ehsanulsiam.workers.dev/browse/morphicons

free

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

by Guillermo López[GitHub](https://github.com/guillermolg00/morphicons)[npm](https://npmjs.com/package/morphicons)

[visit](https://www.morphicons.com/?utm_source=tastebase&utm_medium=referral&utm_content=detail-page)

[https://www.morphicons.com](https://www.morphicons.com/?utm_source=tastebase&utm_medium=referral&utm_content=detail-preview)

## Try these

no preview

### [lucide-animated](https://tastebase.ehsanulsiam.workers.dev/browse/lucide-animated)

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

no preview

### [Its Hover](https://tastebase.ehsanulsiam.workers.dev/browse/itshover)

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

no preview

### [Lucide](https://tastebase.ehsanulsiam.workers.dev/browse/lucide)

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

no preview

### [Phosphor Icons](https://tastebase.ehsanulsiam.workers.dev/browse/phosphor)

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

[Lucide](https://tastebase.ehsanulsiam.workers.dev/browse/lucide)[Phosphor Icons](https://tastebase.ehsanulsiam.workers.dev/browse/phosphor)[Tabler Icons](https://tastebase.ehsanulsiam.workers.dev/browse/tabler-icons)[shadcn/ui](https://tastebase.ehsanulsiam.workers.dev/browse/shadcn-ui)

##### Alternatives

[lucide-animated](https://tastebase.ehsanulsiam.workers.dev/browse/lucide-animated)[Its Hover](https://tastebase.ehsanulsiam.workers.dev/browse/itshover)

[Compare morphicons with its alternatives](https://tastebase.ehsanulsiam.workers.dev/alternatives/morphicons-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>
```

https://www.morphicons.com

Loading website

[Visit](https://www.morphicons.com/?utm_source=tastebase&utm_medium=referral&utm_content=floating-pill)
