Animated Card
spectrumui/animated-cardFreeComponent
component for the Animated Card
Install it
npx shadcn@latest add https://ui.spectrumhq.in/r/animated-card.jsonSource
1import Image, { StaticImageData } from "next/image";23const AnimatedCard = ({4 imgSrc,5 title,67 aboutProduct,8}: {9 imgSrc: StaticImageData | string;10 title: string;1112 aboutProduct: string;13}) => {14 return (15 <div className="md:w-80 border rounded-2xl shadow-lg border-white dark:border-neutral-700 bg-neutral-50 dark:bg-neutral-900 overflow-hidden transition-transform duration-300 hover:scale-105">16 <div className="p-5 flex flex-col items-center">17 <Image18 className="w-32 h-32 object-contain mb-4"19 src={imgSrc}20 alt={`${title} logo`}21 width={128}22 height={128}23 />24 <div className="text-center space-y-1">25 <div className="text-2xl font-bold tracking-tight text-foreground">{title}</div>2627 <p className="text-sm text-muted-foreground mt-2">{aboutProduct}</p>28 </div>29 </div>30 </div>31 );32};3334export default AnimatedCard;
What it pulls in
npm packages
Files it writes
More from spectrumui
All 182 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | spectrumui | Components | Free | no deps | |
| Alert demoalert-1 | spectrumui | Components | Free | 1 dep | |
| Alert 2alert-2 | spectrumui | Components | Free | no deps | |
| Alert 3alert-3 | spectrumui | Components | Free | 1 dep | |
| Alert 4alert-4 | spectrumui | Components | Free | 1 dep | |
| Animated Draweranimated-drawer | spectrumui | Components | Free | 4 deps | |
| Animated SVG Chartanimated-SVG-chart | spectrumui | Components | Free | 1 dep | |
| Animated Switchanimated-switch | spectrumui | Components | Free | 1 dep |
