dami/ui

Spinner

<Spinner />

Install

npx shadcn@latest add @dami/spinner

Or without the namespace: npx shadcn@latest add https://ui.dami.uy/r/spinner.json

Source

import { cn } from "@/registry/dami/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 }