21 lines
559 B
TypeScript
21 lines
559 B
TypeScript
function Button({
|
|
text,
|
|
onClick,
|
|
type,
|
|
}: {
|
|
text: string;
|
|
onClick: () => void;
|
|
type: "submit" | "button" | "reset";
|
|
}): JSX.Element {
|
|
return (
|
|
<button
|
|
onClick={onClick}
|
|
className="inline-block py-1 px-8 font-bold bg-orange-500 text-white border-2 border-black rounded-full cursor-pointer mt-5 mb-5 transition-colors duration-10 hover:bg-orange-600 hover:text-gray-300 font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; font-size: 4vh;"
|
|
type={type}
|
|
>
|
|
{text}
|
|
</button>
|
|
);
|
|
}
|
|
|
|
export default Button;
|