Blazor.Skeleton
1.0.2
dotnet add package Blazor.Skeleton --version 1.0.2
NuGet\Install-Package Blazor.Skeleton -Version 1.0.2
<PackageReference Include="Blazor.Skeleton" Version="1.0.2" />
<PackageVersion Include="Blazor.Skeleton" Version="1.0.2" />
<PackageReference Include="Blazor.Skeleton" />
paket add Blazor.Skeleton --version 1.0.2
#r "nuget: Blazor.Skeleton, 1.0.2"
#:package Blazor.Skeleton@1.0.2
#addin nuget:?package=Blazor.Skeleton&version=1.0.2
#tool nuget:?package=Blazor.Skeleton&version=1.0.2
ðĶī Skeleton.Loading
Skeleton.Loading is a lightweight and fully customizable Blazor component for rendering beautiful skeleton loaders while your content is being fetched or processed.
Perfect for improving UX and providing visual feedback during data loading!
ðĶ Installation
1. Install the package
Add the Skeleton.Loading library to your Blazor project using either:
- NuGet Package Manager
- Project Reference (if you're working in a shared solution)
2. Add the required CSS reference
In your HTML file:
- Blazor WebAssembly:
wwwroot/index.html - Blazor Server:
Pages/_Host.cshtml
Add the following line inside the <head> tag:
<link href="_content/Skeleton.Loading/Skelaton.css" rel="stylesheet" />
â This step is required to apply skeleton styles to your components.
ð§ą Basic Usage
<SkeletonLoading IsLoading="true" Shape="ShapeType.Circle" Height="40px" Width="40px">
<img src="avatar.jpg" alt="User Avatar" />
</SkeletonLoading>
- When
IsLoadingistrue, a loading skeleton is shown. - When
false, the actual content is rendered.
ð§ Parameters
| Parameter | Type | Description | Default |
|---|---|---|---|
IsLoading |
bool |
Whether the skeleton is shown or not | â |
Shape |
ShapeType? |
Shape of the skeleton (Rectangle, Circle, Square) |
Rectangle |
Animation |
AnimationType? |
Animation style (Pulse, Wave, Blink) |
Pulse |
Height |
string? |
Height of the skeleton placeholder | 16px |
Width |
string? |
Width of the skeleton placeholder | 100% |
AdditionalStyles |
string? |
Inline CSS styles to customize the outer div | null |
ChildContent |
RenderFragment? |
Actual content to display after loading | â |
ðĻ Shape Options (ShapeType)
Rectangleâ Standard block with rounded cornersCircleâ Perfect for avatars or iconsSquareâ Same width and height, great for tiles
ðïļ Animation Options (AnimationType)
Pulseâ Fades in and out subtlyWaveâ Horizontal shimmer animationBlinkâ Quick fade in/out loop
â Full Example
<SkeletonLoading
IsLoading="@isLoading"
Shape="ShapeType.Square"
Width="80px"
Height="80px"
Animation="AnimationType.Blink">
<div class="actual-content">
<h4>Welcome Back!</h4>
<p>This is real content displayed after loading completes.</p>
</div>
</SkeletonLoading>
ð Notes
- Combine multiple
SkeletonLoadingcomponents to build full-page or card skeletons. - Use custom
Width/Heightor CSS classes for precise layout matching. - Works seamlessly with all modern Blazor versions (.NET 6, 7, 8+).
âĪïļ Support the Blazor Community
This component was created with âĪïļ to support the Blazor developer community.
If you like it:
- â Star the repository
- ðĪ Contribute with ideas, bug fixes, or enhancements
- ðĢ Share it with other Blazor devs
Made with ð for the Blazor ecosystem
Happy Loading! ð
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- Microsoft.AspNetCore.Components.Web (>= 8.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|