Files
shadcn-ui/apps/www/content/docs/components/skeleton.mdx
2023-06-22 22:44:52 +04:00

30 lines
381 B
Plaintext

---
title: Skeleton
description: Use to show a placeholder while content is loading.
component: true
---
<ComponentPreview name="skeleton-demo" />
## Installation
<Steps>
### Command
```bash
npx shadcn-ui add skeleton
```
### Usage
```tsx
import { Skeleton } from "@/components/ui/skeleton"
```
```tsx
<Skeleton className="w-[100px] h-[20px] rounded-full" />
```
</Steps>