Files
pdfer/components/Button.tsx
2021-02-25 00:35:03 +01:00

20 lines
542 B
TypeScript

import React, { PointerEvent } from 'react'
export default function Button({
children,
onClick,
}: {
children: React.ReactNode
onClick: (event: PointerEvent<HTMLButtonElement>) => void
}) {
return (
<button
type="button"
onClick={onClick}
className="inline-flex items-center px-4 py-2 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500"
>
{children}
</button>
)
}