Last active
January 1, 2020 14:02
-
-
Save whisher/b88d6b2b61e937e9965e000cd48eed4c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> { | |
onClick: () => void; | |
} | |
const Button: React.FC<ButtonProps> = ({ | |
children, | |
...buttonProps | |
}) => { | |
return ( | |
<button | |
className="px-2 py-1 rounded-lg bg-green-400 text-green-800 text-xl font-light uppercase shadow-md hover:shadow-lg" | |
{...buttonProps} | |
> | |
{children} | |
</button> | |
); | |
}; | |
export default Button; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment