16 lines
436 B
React
Executable File
16 lines
436 B
React
Executable File
import { motion } from "framer-motion";
|
|
|
|
export default function Button({ text, type, onClick }) {
|
|
return (
|
|
<motion.button
|
|
whileHover={{ scale: 1.05 }}
|
|
whileTap={{ scale: 0.95 }}
|
|
type={type}
|
|
onClick={onClick}
|
|
className="w-full bg-button-primary text-white py-3 rounded-lg hover:bg-button-hover transition shadow-md font-semibold text-lg"
|
|
>
|
|
{text}
|
|
</motion.button>
|
|
);
|
|
}
|