Shivam311's picture
feat: CodeAtlas Enterprise - IBM Bob Engineering Intelligence Platform
3a7842d
Raw
History Blame Contribute Delete
498 Bytes
import clsx from 'clsx';
import { motion } from 'framer-motion';
export default function GlassCard({ children, className = '', accent = false, onClick }) {
return (
<motion.div
whileHover={onClick ? { y: -2 } : undefined}
onClick={onClick}
className={clsx(
'glass rounded-lg p-5 transition-colors duration-200',
accent && 'border-cyan-400/30',
onClick && 'cursor-pointer',
className,
)}
>
{children}
</motion.div>
);
}