mirror of
https://github.com/tomru/pdfer.git
synced 2026-03-03 14:37:21 +01:00
20 lines
542 B
TypeScript
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>
|
|
)
|
|
}
|