16 lines
464 B
TypeScript
16 lines
464 B
TypeScript
import React from "react";
|
|
|
|
interface PrimaryButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
children: React.ReactNode;
|
|
}
|
|
|
|
export function PrimaryButton({ children, className = "", ...props }: PrimaryButtonProps) {
|
|
return (
|
|
<button
|
|
className={`bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-4 rounded-md shadow-sm transition-colors text-sm ${className}`}
|
|
{...props}
|
|
>
|
|
{children}
|
|
</button>
|
|
);
|
|
}
|