Spaces:
Build error
Build error
File size: 496 Bytes
4aaa37d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | export function Button({ children, onClick, disabled = false, variant = 'primary', className = '' }) {
const variants = {
primary: 'button-primary',
secondary: 'button-secondary',
outline: 'border border-primary-500 text-primary-500 hover:bg-primary-50',
};
return (
<button
onClick={onClick}
disabled={disabled}
className={`${variants[variant]} ${className} ${disabled ? 'opacity-50 cursor-not-allowed' : ''}`}
>
{children}
</button>
);
} |