Components
- Accordion
- Action Bar
- Alert Dialog
- Alert
- Announcement
- Aspect Ratio
- Autocomplete
- Avatar
- Badge
- Bottom Navigation
- Breadcrumb
- Button Group
- Button
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Circular Progress
- Circular Slider
- Clipboard
- Collapsible
- Color Picker
- Combobox
- Command
- Context Menu
- Data List
- Date Picker
- Dialog
- Drawer
- Editable
- Field
- File Upload
- Float
- Floating Panel
- Frame
- Hint
- Hover Card
- Image Cropper
- Input Group
- Input OTP
- Input
- Item
- Kbd
- Link Overlay
- Listbox
- Marquee
- Menu
- Native Select
- Number Input
- Pagination
- Popover
- Progress
- Prose
- QR Code
- Radio Group
- Rating
- Resizable
- Scroll Area
- Segment Group
- Select
- Separator
- Sheet
- Sidebar
- Signature Pad
- Skeleton
- Skip Nav
- Slider
- Spinner
- Status
- Steps
- Switch
- Table
- Tabs
- Textarea
- Timer
- Toast
- Toggle Group
- Toggle Tooltip
- Toggle
- Tooltip
- Tour
- Tree View
Installation
pnpm dlx shadcn@latest add https://shark.vini.one/r/skeleton.json
Usage
import { Skeleton, SkeletonCircle, SkeletonText, } from "@/components/ui/skeleton";
<SkeletonCircle /> <SkeletonText /> <Skeleton />
Examples
Skeleton
Rectangular skeleton placeholder.
Circle
Circular skeleton placeholder.
Text
Use the lines prop to control the number of placeholder lines; the last line is shorter by default.
Loading cards
API Reference
Skeleton
Rectangular loading placeholder.
| Prop | Type | Default |
|---|---|---|
className | string | - |
asChild | boolean | - |
SkeletonCircle
Circular loading placeholder (e.g. for avatars).
| Prop | Type | Default |
|---|---|---|
className | string | - |
asChild | boolean | - |
SkeletonText
Multi-line text placeholder. Last line is shorter by default to mimic text.
| Prop | Type | Default |
|---|---|---|
lines | number | 2 |
className | string | - |
asChild | boolean | - |
For a complete list of props, see the Ark UI documentation.