eretrrefvdsfd / client /src /components /LoadingSpinner.tsx
cnmksjs's picture
Upload 59 files
2c6bb7b verified
raw
history blame contribute delete
505 Bytes
import { cn } from '@/lib/utils'
interface LoadingSpinnerProps {
size?: 'sm' | 'md' | 'lg'
className?: string
}
export default function LoadingSpinner({ size = 'md', className }: LoadingSpinnerProps) {
const sizeClasses = {
sm: 'w-4 h-4',
md: 'w-6 h-6',
lg: 'w-8 h-8'
}
return (
<div
className={cn(
'animate-spin rounded-full border-2 border-gray-300 border-t-blue-600',
sizeClasses[size],
className
)}
/>
)
}