Files
digifi-www/src/components/shared/Button.tsx
T
2024-03-21 11:29:38 +01:00

28 lines
522 B
TypeScript

import React from "react";
interface ButtonProps {
text: string;
className?: string;
type?: "button" | "submit" | "reset";
onClick?: React.MouseEventHandler<HTMLButtonElement>;
}
const Button: React.FC<ButtonProps> = ({
text,
className,
onClick,
type = "button",
}) => {
return (
<button
className={`btn-primary uppercase text-[11px] lg:text-[13px] p-[6px] lg:px-[10px] ${className}`}
onClick={onClick}
type={type}
>
{text}
</button>
);
};
export default Button;