Files
9af8e2b1-4219-4d6a-98d5-84b…/src/components/ui/Spinner.tsx
2026-06-15 17:49:44 +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;