mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-01 00:24:20 +00:00
23 lines
436 B
TypeScript
23 lines
436 B
TypeScript
import { LoaderIcon } from "lucide-react"
|
|
|
|
import { cn } from "@/lib/utils"
|
|
|
|
function Spinner({ className, ...props }: React.ComponentProps<"svg">) {
|
|
return (
|
|
<LoaderIcon
|
|
role="status"
|
|
aria-label="Loading"
|
|
className={cn("size-4 animate-spin", className)}
|
|
{...props}
|
|
/>
|
|
)
|
|
}
|
|
|
|
export function SpinnerCustom() {
|
|
return (
|
|
<div className="flex items-center gap-4">
|
|
<Spinner />
|
|
</div>
|
|
)
|
|
}
|