Skeleton
Loading placeholder with pulse animation.
Installation
Add the Skeleton component using the CLI:
shadcnblazor component add skeleton
Usage
The Skeleton component displays a loading placeholder with a pulse animation. Use the Class parameter to customize the shape (e.g., h-12 w-12 rounded-full for avatars, h-4 w-[250px] for text lines).
Examples
Shapes
Combine Skeleton components with different Class values to build loading states for cards, avatars, or form layouts.
API Reference
Skeleton
Loading placeholder with pulse animation. Use the Class parameter to customize shape (e.g., h-12 w-12 rounded-full for avatar, h-4 w-[250px] for text).
Properties
| Name | Type | Description |
|---|---|---|
AdditionalAttributes |
Dictionary<string, Object> |
|
Class |
string |
Methods
| Method | Returns | Description |
|---|---|---|
Equals |
bool |
|
GetHashCode |
int |
|
GetType |
Type |
|
SetParametersAsync |
Task |
|
ToString |
string |
Mobile support for API reference coming soon.