AI Response Stream
AI answer card with a streamed code block, revision navigation, one-tap copy, and rating morphs.
Here is the verified motion component utilizing cubic-spring damping physics. It compiles cleanly with Tailwind CSS and React.
SpringCard.tsx
import { motion } from "motion/react";
export function SpringCard() {
return (
<motion.div
whileHover={{ y: -4, scale: 1.02 }}
whileTap={{ scale: 0.98 }}
transition={{ type: "spring", stiffness: 400, damping: 28 }}
className="p-6 rounded-2xl bg-zinc-900 border border-white/10 shadow-xl"
>
<h3 className="text-white font-semibold">Fluid Motion Card</h3>
<p className="text-zinc-400 text-sm mt-1">Zero layout shifts, pure 60fps spring responsiveness.</p>
</motion.div>
);
}1 / 3
Usage
<AiResponseStream title="Generated component" codeSnippet={code} />