23 lines
705 B
TypeScript
23 lines
705 B
TypeScript
export default function SecondaryButton({
|
|
type = 'button',
|
|
className = '',
|
|
disabled,
|
|
children,
|
|
...props
|
|
}) {
|
|
return (
|
|
<button
|
|
{...props}
|
|
type={type}
|
|
className={
|
|
`inline-flex items-center rounded-xl border border-gray-200 bg-white px-4 py-2 text-sm font-bold tracking-tight text-[#3D4E4B] transition-all hover:bg-gray-50 hover:border-gray-300 focus:outline-none focus:ring-2 focus:ring-[#D4A017] focus:ring-offset-2 disabled:opacity-25 ${
|
|
disabled && 'opacity-25'
|
|
} ` + className
|
|
}
|
|
disabled={disabled}
|
|
>
|
|
{children}
|
|
</button>
|
|
);
|
|
}
|