SkeletonFor 1.0.0
dotnet add package SkeletonFor --version 1.0.0
NuGet\Install-Package SkeletonFor -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="SkeletonFor" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SkeletonFor" Version="1.0.0" />
<PackageReference Include="SkeletonFor" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add SkeletonFor --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: SkeletonFor, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package SkeletonFor@1.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=SkeletonFor&version=1.0.0
#tool nuget:?package=SkeletonFor&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ðĶī SkeletonFor
SkeletonFor is a 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 SkeletonFor
library to your Blazor project using either:
- NuGet Package Manager
- Project Reference (if you're working in a shared solution)
ð§ą Basic Usage
<Skeleton IsLoading="true" Shape="ShapeType.Circle" Height="50px" Width="50px">
<img src="https://i.pravatar.cc/50" style="border-radius:50px" />
</Skeleton>
- When
IsLoading
istrue
, 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
@using SkeletonFor.Components
<Skeleton IsLoading="@isLoading"
Shape="ShapeType.Square"
Width="50px"
Height="50px"
Animation="AnimationType.Blink">
<img src="https://i.pravatar.cc/100" style="border-radius:50px" />
</Skeleton>
@code {
private bool isLoading = true;
protected override async Task OnInitializedAsync()
{
await Task.Delay(1000);
isLoading = false;
}
}
ð Notes
- Combine multiple
SkeletonFor
components to build full-page or card skeletons. - Use custom
Width
/Height
or 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
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 |
---|---|---|
1.0.0 | 202 | 4/16/2025 |