shadimage

Spinner

A compact loading spinner using Lucide.

registry/new-york-v4/ui/spinner.tsx

import type React from "react";
import { Loader2 } from "lucide-react";

import { cn } from "@/lib/utils";

export function Spinner({
  className,
  ...props
}: React.ComponentProps<typeof Loader2>): React.ReactElement {
  return (
    <Loader2
      aria-label="Loading"
      className={cn("animate-spin", className)}
      role="status"
      {...props}
    />
  );
}

No selection tags yet — empty means no evidence, not lack of support.

DependenciesBundle weight · light

lucide-react@^0.514.0