A loading spinner component.
View the full component source code below.
import { cn } from '@/lib/utils'
import { Loader2Icon } from "lucide-react"
function Spinner({ className, ...props }: React.ComponentProps<"svg">) {
return (
<Loader2Icon role="status" aria-label="Loading" className={cn("size-4 animate-spin", className)} {...props} />
)
}
export { Spinner }
npx shadcn@latest add https://registry.mukoko.com/api/v1/ui/spinnerFetch this component's metadata and source code from the registry API.
/api/v1/ui/spinnercomponents/ui/spinner.tsx