# Skeleton

> Loading placeholder block.

Registry name: `skeleton`. HTML docs: https://ui.anuragroy.dev/component/skeleton.

## Install

```bash
npx shadcn@latest add https://ui.anuragroy.dev/r/skeleton.json
```

If the website is down: `npx shadcn@latest add https://raw.githubusercontent.com/anurag-roy/ui.anuragroy.dev/main/public/r/skeleton.json`.

Registry JSON: https://ui.anuragroy.dev/r/skeleton.json (GitHub: https://raw.githubusercontent.com/anurag-roy/ui.anuragroy.dev/main/public/r/skeleton.json).

## Import

Import paths follow the consumer `components.json` aliases. After a default install:

```tsx
import { Skeleton } from "@/components/ui/skeleton"
```

## Usage

```tsx
import { Skeleton } from "@/components/ui/skeleton"

export function Example() {
  return <Skeleton className="h-12 w-full" />
}
```

## API

### Skeleton

Animated pulse `div`. Size it with `className`.

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `className` | string | — |  |

## See also

- [HTML page](https://ui.anuragroy.dev/component/skeleton): Preview and the same docs in the site chrome.
- [Registry item](https://ui.anuragroy.dev/r/skeleton.json): Source files and dependencies.
- [Catalog](https://ui.anuragroy.dev/component): All components.
- [llms.txt](https://ui.anuragroy.dev/llms.txt): Agent index for this library.
