An animated shimmer placeholder that previews the shape of content while it loads. Use it to build loading screens that match the layout of the real content. For content with unknown dimensions, use Spinner instead.
tsimport {Skeleton} from '@astryxdesign/core/Skeleton'
| Guidance | Practices |
|---|---|
| Do | Match the size and shape of the content being loaded to create a realistic placeholder. |
| Do | Stagger multiple skeletons with the |
| Don't | Use when the content dimensions are unknown; use Spinner instead. |
| Don't | Combine with a Spinner on the same content area; pick one loading pattern. |
| Don't | Show skeletons indefinitely; if loading takes too long, show an error or empty state instead. |