---
title: "Spinner"
description: "A loading spinner for buttons, inputs, and pages, with an accessible status label, sized and colored with Tailwind CSS."
plan: Free
docs: https://ui.edbn.me/docs/components/spinner
---

# Spinner

A loading spinner for buttons, inputs, and pages, with an accessible status label, sized and colored with Tailwind CSS.

## Installation

```bash
npx shadcn@4.19.0 add https://ui.edbn.me/r/spinner.json
```

## Dependencies
- npm: lucide-react@^1.33.0
- edbn: edbn-base

## Usage

```tsx examples/spinner-basic.tsx
"use client";
import { Spinner } from "@/components/ui/spinner";

export default function SpinnerBasicPreview() {
  return (
    <div className="flex items-center gap-2 text-[13px] text-muted-foreground">
      <Spinner /> Loading
    </div>
  );
}
```

## Files
- components/ui/spinner.tsx (11 lines)

## For agents
- Base theme, once per project: npx shadcn@4.19.0 add https://ui.edbn.me/r/edbn-base.json
- MCP server with search, items, examples and source: https://ui.edbn.me/mcp
- Every page and item: https://ui.edbn.me/llms.txt
