Spaces:
Runtime error
Runtime error
File size: 547 Bytes
6a317c1 d32544a 6a317c1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import React from 'react';
interface GlassButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
children: React.ReactNode;
}
export default function GlassButton({ children, className = '', ...props }: GlassButtonProps) {
return (
<button
className={`bg-white/60 backdrop-blur-sm border border-gray-300 text-gray-900 px-4 py-2 rounded-md shadow-lg transition-all hover:bg-white active:scale-95 disabled:opacity-50 disabled:cursor-not-allowed ${className}`}
{...props}
>
{children}
</button>
);
}
|