A skeleton screen component that displays placeholder shapes while content is loading. RadzenSkeleton provides subtle loading states that match content structure, improving perceived performance. Shows gray placeholder shapes that mimic the structure of the content being loaded, providing better UX than spinners by showing users the approximate layout before content appears, making loading feel faster with immediate feedback, and reducing anxiety through progressive disclosure. Supports multiple shapes including Text (horizontal bars for text lines, default), Circle (circular placeholders for avatars or icons), and Rectangle (rectangular blocks for images or cards). Animations (None, Pulse, Wave) can be applied for additional loading feedback. Use multiple skeletons to represent the full structure of your loading content.
IComponent
IHandleEvent
IHandleAfterRender
RadzenComponent.SetParametersAsync
RadzenComponent.OnAfterRenderAsync
RadzenComponent.RaiseContextMenu
RadzenComponent.RaiseMouseEnter
RadzenComponent.AddContextMenu
RadzenComponent.RaiseMouseLeave
RadzenComponent.OnBecameInvisible
RadzenComponent.DefaultCulture
RadzenComponent.IsJSRuntimeAvailable
ComponentBase.OnInitializedAsync
ComponentBase.OnParametersSet
ComponentBase.OnParametersSetAsync
ComponentBase.StateHasChanged
ComponentBase.ShouldRender
ComponentBase.OnAfterRender
ComponentBase.InvokeAsync
ComponentBase.DispatchExceptionAsync
ComponentBase.RendererInfo
ComponentBase.Assets
ComponentBase.AssignedRenderMode
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
public class RadzenSkeleton : RadzenComponent, IComponent, IHandleEvent, IHandleAfterRenderText line skeleton:
<RadzenSkeleton Style="width: 100%; height: 20px;" Animation="SkeletonAnimation.Pulse" />
Avatar and text skeleton:
<RadzenStack Orientation="Orientation.Horizontal" Gap="1rem" AlignItems="AlignItems.Center">
<RadzenSkeleton Variant="SkeletonVariant.Circle" Style="width: 50px; height: 50px;" />
<RadzenStack Gap="0.5rem">
<RadzenSkeleton Style="width: 200px; height: 16px;" />
<RadzenSkeleton Style="width: 150px; height: 16px;" />
</RadzenStack>
</RadzenStack>
Image card skeleton:
<RadzenCard Style="width: 300px;">
<RadzenSkeleton Variant="SkeletonVariant.Rectangle" Style="width: 100%; height: 200px;" Animation="SkeletonAnimation.Wave" />
<RadzenSkeleton Style="width: 80%; height: 24px; margin-top: 1rem;" />
<RadzenSkeleton Style="width: 60%; height: 16px; margin-top: 0.5rem;" />
</RadzenCard>A skeleton screen component that displays placeholder shapes while content is loading. RadzenSkeleton provides subtle loading states that match content structure, improving perceived performance. Shows gray placeholder shapes that mimic the structure of the content being loaded, providing better UX than spinners by showing users the approximate layout before content appears, making loading feel faster with immediate feedback, and reducing anxiety through progressive disclosure. Supports multiple shapes including Text (horizontal bars for text lines, default), Circle (circular placeholders for avatars or icons), and Rectangle (rectangular blocks for images or cards). Animations (None, Pulse, Wave) can be applied for additional loading feedback. Use multiple skeletons to represent the full structure of your loading content.
public RadzenSkeleton()Gets or sets the animation effect applied to the skeleton placeholder. None (static), Pulse (fade in/out), or Wave (shimmer effect moving across).
public SkeletonAnimation Animation { get; set; }
| Type | Description |
|---|---|
| SkeletonAnimation | Gets or sets the animation effect applied to the skeleton placeholder. None (static), Pulse (fade in/out), or Wave (shimmer effect moving across). |
Gets or sets the shape variant of the skeleton placeholder. Text creates horizontal bars, Circle creates circular shapes, Rectangle creates rectangular blocks.
public SkeletonVariant Variant { get; set; }
| Type | Description |
|---|---|
| SkeletonVariant | Gets or sets the shape variant of the skeleton placeholder. Text creates horizontal bars, Circle creates circular shapes, Rectangle creates rectangular blocks. |
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
| Type | Name | Description |
|---|---|---|
| Rendering.RenderTreeBuilder | __builder |
protected override string GetComponentCssClass()
| Type | Description |
|---|---|
| string |
Gets the final style string including component-specific styles.
protected string GetStyle()
| Type | Description |
|---|---|
| string | The style string. |