adding base project

This commit is contained in:
Azmat-7860
2026-10-07 09:07:57 +05:30
commit dc69f693f0
43 changed files with 5193 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
import React from 'react';
import './common.css';
export function Button({
children,
variant = 'primary',
size = 'md',
isLoading = false,
icon: Icon,
fullWidth = false,
className = '',
disabled,
...props
}) {
return (
<button
className={`btn btn-${variant} btn-${size} ${fullWidth ? 'btn-block' : ''} ${className}`}
disabled={disabled || isLoading}
{...props}
>
{isLoading ? (
<span className="btn-spinner" />
) : (
<>
{Icon && <Icon className="btn-icon" size={size === 'sm' ? 16 : size === 'lg' ? 20 : 18} />}
<span>{children}</span>
</>
)}
</button>
);
}