mirror of
https://github.com/jnsahaj/tweakcn.git
synced 2026-08-28 23:02:07 +08:00
23 lines
628 B
TypeScript
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>
|
|
);
|
|
}
|