vkorobtsev-nextJs/components/Button.js

13 lines
504 B
JavaScript
Raw Normal View History

const Button = ({ children, variation, ...props }) => (
<button
{...props}
2023-09-03 20:26:08 +07:00
className={`title mr-3 rounded-2xl px-8 py-2 shadow-md transition duration-300 ease-in-out ${
variation === "primary"
2023-09-05 21:39:08 +07:00
? "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;