Same components, CSS animations instead of spring physics.
Static components drop the motion dependency (~15KB gzipped). Animations still exist—they're just CSS transitions instead of spring physics. Most users won't notice the difference. You might, if you're picky about how a modal scales in.
The API is identical. Switch by changing your import path from @/components/ui/animated to @/components/ui/static.
| Component | Animated | Static |
|---|---|---|
| Button | ~18KB | ~3KB |
| Alert Dialog | ~22KB | ~5KB |
| Popover | ~20KB | ~4KB |
The motion library is shared across animated components. After the first import, marginal cost drops.
Want spring physics? Animated components →