TTime/frontend/src/Components/Button.tsx

10 lines
454 B
TypeScript
Raw Normal View History

function Button({text, onClick}: {text: string; onClick: () => void;}){
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;"
>
{text}
</button>
}
export default Button;