feat: add gain responsive

This commit is contained in:
2026-07-22 22:33:14 +02:00
parent 5cee5a2047
commit 4dc557a255
29 changed files with 1128 additions and 908 deletions

View File

@ -0,0 +1,32 @@
import './Button.css';
import type { ButtonHTMLAttributes, ReactNode } from 'react';
type ButtonVariant = 'primary' | 'ghost' | 'toggle' | 'outline';
interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
variant?: ButtonVariant;
children: ReactNode;
className?: string;
}
export default function Button({
variant = 'primary',
children,
className = '',
disabled,
onClick,
type = 'button',
...props
}: ButtonProps) {
return (
<button
type={type}
className={`btn btn-${variant} ${className}`}
onClick={onClick}
disabled={disabled}
{...props}
>
{children}
</button>
);
}