Loading...
Syntax-highlighted code block with copy button and optional line numbers.
npm install framer-motionimport { CodeBlock } from '@/components/CodeBlock'1import { motion } from 'framer-motion'2 3export function AnimatedButton() {4 return (5 <motion.button6 whileHover={{ scale: 1.05 }}7 whileTap={{ scale: 0.95 }}8 className="px-4 py-2 bg-indigo-600 text-white"9 >10 Click me11 </motion.button>12 )13}const greeting = "Hello, World!"console.log(greeting)Hover over code blocks to see the copy button