Files
ae6d754f-ca26-4659-aec0-07d…/src/components/ui/Spinner.tsx
2026-06-16 15:42:51 +00:00

25 lines
457 B
TypeScript

import { cls } from "@/lib/utils";
interface SpinnerProps {
size?: "sm" | "md" | "lg";
className?: string;
}
const SIZES = {
sm: "size-4 border-1",
md: "size-6 border-2",
lg: "size-8 border-2",
};
const Spinner = ({ size = "md", className = "" }: SpinnerProps) => (
<div
className={cls(
"animate-spin rounded-full border-foreground/10 border-t-foreground",
SIZES[size],
className
)}
/>
);
export default Spinner;