# Spinner overlay on card

> Spinner overlay on card

A shadcn/ui block from the [@reui](https://reui.io) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/reui/c-spinner-11).

- Page, with a live preview: https://shadcn.exchange/r/reui/c-spinner-11
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/reui/c-spinner-11-light-7ab15e8bc41aa769.png
- Registry item: https://reui.io/r/new-york-v4/c-spinner-11.json
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://reui.io/r/new-york-v4/c-spinner-11.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `card`, `spinner`

## Files

### `c-spinner-11.tsx`

```tsx
import { Card, CardContent } from "@/components/ui/card"
import { Spinner } from "@/components/ui/spinner"

export function Pattern() {
  return (
    <Card className="relative w-full max-w-xs">
      <CardContent className="space-y-3 p-4">
        <h3 className="text-sm font-semibold">Dashboard Overview</h3>
        <p className="text-muted-foreground text-sm">
          Monthly revenue and user statistics for the current period.
        </p>
        <div className="grid grid-cols-2 gap-4">
          <div className="rounded-md border p-3">
            <p className="text-muted-foreground text-xs">Revenue</p>
            <p className="text-lg font-bold">$12,450</p>
          </div>
          <div className="rounded-md border p-3">
            <p className="text-muted-foreground text-xs">Users</p>
            <p className="text-lg font-bold">1,234</p>
          </div>
        </div>
      </CardContent>

      {/* Overlay */}
      <Card className="bg-background/80 absolute inset-0 z-10 flex items-center justify-center backdrop-blur-xs">
        <CardContent className="flex grow flex-col items-center justify-center gap-2">
          <Spinner className="size-4 opacity-60" />
        </CardContent>
      </Card>
    </Card>
  )
}
```
