Files
grademaxxing/app/components/LoadingSpinner.tsx
2026-01-17 13:37:57 +01:00

20 lines
428 B
TypeScript

interface LoadingSpinnerProps {
size?: "sm" | "md" | "lg";
}
export function LoadingSpinner({ size = "md" }: LoadingSpinnerProps) {
const sizes = {
sm: "w-4 h-4",
md: "w-8 h-8",
lg: "w-12 h-12",
};
return (
<div className="flex justify-center items-center">
<div
className={`${sizes[size]} border-4 border-gray-200 border-t-blue-600 rounded-full animate-spin`}
/>
</div>
);
}