Skeleton
A placeholder that previews the shape of content being loaded.
Usage guide
#While content loads, preserve the final layout's structure and space. Switch to Empty if loading finishes without data.
Text, profiles, and images
Choose a type resembling the content: text, avatar, image, or gallery.
Buttons, tables, and trees
Use button, table, or tree for complex areas and adjust rows and width.
Examples
#Feature examples
#Choose a feature from 6 topics. Explore property settings, method calls, event results, and slot layouts through live examples and code.
No matching features.
API reference
#Hover over a name or focus it with the keyboard to see the code. On touch screens, tap the name.
<sy-skeleton>
Properties
| Attribute / Property | Type | Default | Description |
|---|---|---|---|
'text' | 'avatar' | 'image' | 'gallary' | 'gallery' | 'button' | 'table' | 'tree' | 'text' | Placeholder shape matching the actual content. | |
number | 0 | Number of rows in repeated content such as text, tables, or trees. | |
string | '100%' | Label area width, as a CSS length. | |
boolean | false | Keep the Skeleton visible while stopping only its animation. |
Methods
| Method | Returns | Description |
|---|---|---|
Promise<void> | Stop the Skeleton animation. | |
Promise<void> | Restart the Skeleton animation. |