# Skeleton > Loading state placeholder with pulse animation Source: https://shellui.dev/docs/v0.4/components/data-display/skeleton The Skeleton component provides animated placeholder shapes that indicate content is loading. Use skeletons to reduce perceived load time and prevent layout shift. ## Installation ```bash shellui add skeleton ``` ## Basic Usage ```razor ``` The default styling applies `animate-pulse rounded-md bg-muted` for a smooth pulsing effect. ## Variants `Variant="circle"` rounds the shape fully, for avatars; `Variant="text"` gives a full-width line of text height. Size them with `Class`. ```razor
``` ## Text Skeleton Simulate loading text with varying widths: ```razor
``` ## Card Skeleton Match the layout of a card component: ```razor
``` ## Profile Skeleton Simulate a user profile loading state: ```razor
``` ## Table Skeleton Placeholder for loading table rows: ```razor
@for (var i = 0; i < 5; i++) {
}
``` ## Conditional Loading Toggle between skeleton and real content: ```razor
@if (isLoading) {
} else {

@title

@description

}
@code { private bool isLoading = true; private string title = "Quarterly report"; private string description = "Revenue grew 12% quarter over quarter."; protected override Task OnInitializedAsync() => Reload(); private async Task Reload() { isLoading = true; await Task.Delay(1500); isLoading = false; } } ``` ## API Reference | Property | Type | Default | Description | |----------|------|---------|-------------| | `Variant` | `string` | `"default"` | `default`, `circle` or `text` | | `ChildContent` | `RenderFragment` | `null` | Optional content inside the skeleton | | `Class` | `string?` | `null` | CSS classes for sizing and shape | ### Default CSS The Skeleton renders with `animate-pulse rounded-md bg-muted` applied automatically. Override with the `Class` parameter. ## Accessibility The Skeleton component includes: - `aria-hidden="true"` to hide from screen readers - Use alongside `aria-busy="true"` on the loading container - No interactive elements within skeletons