snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
This commit is contained in:
21
apps/v4/registry/new-york-v4/examples/spinner-custom.tsx
Normal file
21
apps/v4/registry/new-york-v4/examples/spinner-custom.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import { cn } from "cn"
|
||||
import { LoaderIcon } from "lucide-react"
|
||||
|
||||
function Spinner({ className, ...props }: React.ComponentProps<"svg">) {
|
||||
return (
|
||||
<LoaderIcon
|
||||
role="status"
|
||||
aria-label="Loading"
|
||||
className={cn("size-4 animate-spin", className)}
|
||||
{...props}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
||||
export default function SpinnerCustom() {
|
||||
return (
|
||||
<div className="flex items-center gap-4">
|
||||
<Spinner />
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user