Skip to content

Instantly share code, notes, and snippets.

@whisher
Last active January 1, 2020 14:02
Show Gist options
  • Save whisher/b88d6b2b61e937e9965e000cd48eed4c to your computer and use it in GitHub Desktop.
Save whisher/b88d6b2b61e937e9965e000cd48eed4c to your computer and use it in GitHub Desktop.
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