brawlset/app/components/ui/spinner.tsx

16 lines
378 B
TypeScript
Raw Normal View History

2025-02-12 14:31:51 +00:00
import * as React from "react"
import { cn } from "@/lib/utils"
interface SpinnerProps {
className?: string,
}
const Spinner = ({ className }: SpinnerProps) => {
return (
<div className={cn("inline-block w-12 h-12 border-4 border-orange-200 border-t-orange-500 rounded-full animate-spin", className)}></div>
)}
Spinner.displayName = "Spinner"
export { Spinner }