mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-07-01 00:24:20 +00:00
21 lines
497 B
TypeScript
21 lines
497 B
TypeScript
import { cn } from "@/examples/base/lib/utils"
|
|
|
|
import { IconPlaceholder } from "@/app/(create)/components/icon-placeholder"
|
|
|
|
function Spinner({ className, ...props }: React.ComponentProps<"svg">) {
|
|
return (
|
|
<IconPlaceholder
|
|
lucide="Loader2Icon"
|
|
tabler="IconLoader"
|
|
hugeicons="Loading03Icon"
|
|
phosphor="SpinnerIcon"
|
|
role="status"
|
|
aria-label="Loading"
|
|
className={cn("size-4 animate-spin", className)}
|
|
{...props}
|
|
/>
|
|
)
|
|
}
|
|
|
|
export { Spinner }
|