Files
tweakcn/components/loading.tsx

23 lines
628 B
TypeScript

import { cn } from "@/lib/utils";
interface LoadingProps {
className?: string;
}
export function Loading({ className }: LoadingProps) {
return (
<div
className={cn(
"flex items-center justify-center min-h-[400px]",
className
)}
>
<div className="flex space-x-2">
<div className="w-3 h-3 bg-primary rounded-full animate-bounce [animation-delay:-0.3s]"></div>
<div className="w-3 h-3 bg-primary rounded-full animate-bounce [animation-delay:-0.15s]"></div>
<div className="w-3 h-3 bg-primary rounded-full animate-bounce"></div>
</div>
</div>
);
}