Skip to content

The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.

551 B
Raw Blame
import { motion } from 'framer-motion'
import type { ReactNode } from 'react'
import { MOTION_S } from './motion'

interface Props {
  children: ReactNode
  className?: string
  hover?: boolean
}

export function GlassCard({ children, className = '', hover = false }: Props) {
  return (
    <motion.div
      className={`glass-card rounded-xl p-4 ${className}`}
      whileHover={hover ? { scale: 1.02, borderColor: 'rgba(0, 240, 255, 0.3)' } : undefined}
      transition={{ duration: MOTION_S.base }}
    >
      {children}
    </motion.div>
  )
}