Features
- Pre-configured Layouts: List, descriptions, and result page skeletons
- Consistent Design: Matches ProComponents layouts
- Customizable: Adjust skeleton appearance
- Animated: Smooth loading animations
- Responsive: Adapts to different screen sizes
Basic Usage
Skeleton Types
- List
- Descriptions
- Result
List Page Skeleton
Full page skeleton with all components:List Components
Descriptions Page Skeleton
Descriptions Components
Custom Skeleton
Combine skeleton components:Active Animation
Enable wave animation:Usage with Data Loading
Built-in Skeleton Support
Many ProComponents have built-in skeleton loading:Key Props
ProSkeleton Props
| Prop | Type | Description |
|---|---|---|
type | 'list' | 'descriptions' | 'result' | Skeleton type |
active | boolean | Enable wave animation |
pageHeader | boolean | Show page header skeleton |
toolbar | boolean | Show toolbar skeleton (list) |
search | boolean | Show search form skeleton (list) |
list | boolean | Show list items skeleton |
rowCount | number | Number of rows |
ListPageSkeleton Props
| Prop | Type | Default | Description |
|---|---|---|---|
pageHeader | boolean | true | Show page header |
search | boolean | true | Show search form |
toolbar | boolean | true | Show toolbar |
list | boolean | true | Show list items |
rowCount | number | 5 | List item count |
active | boolean | true | Wave animation |
DescriptionsPageSkeleton Props
| Prop | Type | Default | Description |
|---|---|---|---|
pageHeader | boolean | true | Show page header |
list | boolean | true | Show descriptions |
rowCount | number | 8 | Description item count |
column | number | 2 | Columns per row |
active | boolean | true | Wave animation |
TableSkeleton Props
| Prop | Type | Description |
|---|---|---|
columns | number | Number of columns |
rowCount | number | Number of rows |
active | boolean | Wave animation |
Best Practices
Use matching skeleton types
Use matching skeleton types
Choose the skeleton type that matches your component:
- Use
listskeleton for ProTable/ProList - Use
descriptionsskeleton for ProDescriptions - Use custom skeletons for complex layouts
Enable active animation
Enable active animation
Enable the wave animation for better user experience:
Match skeleton layout to actual content
Match skeleton layout to actual content
Configure skeleton props to match your actual component:
Leverage built-in skeletons
Leverage built-in skeletons
ProTable and ProDescriptions have built-in skeleton support during request loading - no need to add custom skeletons.
Component Reference
Available Skeleton Components
Related Components
- ProTable - Table with built-in skeleton
- ProDescriptions - Descriptions with built-in skeleton
- ProList - List with built-in skeleton
- PageContainer - Page container for skeletons