vkorobtsev-nextJs/components/Button.js
2023-09-05 21:39:08 +07:00

13 lines
No EOL
504 B
JavaScript

const Button = ({ children, variation, ...props }) => (
<button
{...props}
className={`title mr-3 rounded-2xl px-8 py-2 shadow-md transition duration-300 ease-in-out ${
variation === "primary"
? "bg-gray-700 hover:bg-transparent border-transparent hover:border-gray-700 border-2 text-gray-100 hover:text-gray-700 box-border"
: "transparent border-2 border-gray-700 text-gray-700 hover:bg-gray-700 hover:text-gray-100 box-border"
}`}>
{children}
</button>
);
export default Button;