mirror of
https://github.com/tomru/pdfer.git
synced 2026-03-02 22:17:18 +01:00
14 lines
484 B
TypeScript
14 lines
484 B
TypeScript
import React from 'react'
|
|
|
|
export default function Button({ children, onClick }: { children: React.ReactNode; onClick: () => 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-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500"
|
|
>
|
|
{children}
|
|
</button>
|
|
)
|
|
}
|