2025-01-13 21:36:52 +01:00
|
|
|
/* Copyright (C) 2024-2025 LibreWeddingPlanner contributors*/
|
2024-10-27 21:11:45 +00:00
|
|
|
|
2024-08-11 12:03:11 +02:00
|
|
|
import clsx from 'clsx';
|
|
|
|
|
|
|
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
|
children: React.ReactNode;
|
|
|
|
}
|
|
|
|
|
|
|
|
export function Button({ children, className, ...rest }: ButtonProps) {
|
|
|
|
return (
|
|
|
|
<button
|
|
|
|
{...rest}
|
|
|
|
className={clsx(
|
|
|
|
'flex h-10 items-center rounded-lg bg-blue-500 px-4 text-sm font-medium text-white transition-colors hover:bg-blue-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-500 active:bg-blue-600 aria-disabled:cursor-not-allowed aria-disabled:opacity-50',
|
|
|
|
className,
|
|
|
|
)}
|
|
|
|
>
|
|
|
|
{children}
|
|
|
|
</button>
|
|
|
|
);
|
|
|
|
}
|