{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "loading-swap", "description": "Swaps content with a loading spinner without layout shift.", "files": [ { "path": "src/registry/new-york/items/loading-swap/components/loading-swap.tsx", "content": "import { cn } from \"@/lib/utils\"\nimport { Loader2Icon } from \"lucide-react\"\nimport type { ReactNode } from \"react\"\n\nexport function LoadingSwap({\n isLoading,\n children,\n className,\n}: {\n isLoading: boolean\n children: ReactNode\n className?: string\n}) {\n return (\n