HeroWave 1.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package HeroWave --version 1.0.0
NuGet\Install-Package HeroWave -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="HeroWave" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="HeroWave" Version="1.0.0" />
<PackageReference Include="HeroWave" />
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 HeroWave --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: HeroWave, 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 HeroWave@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=HeroWave&version=1.0.0
#tool nuget:?package=HeroWave&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
HeroWave
A reusable Blazor component for animated wavy background effects powered by HTML5 Canvas and simplex noise. Works as a hero section, full-page background, or any container background.
Installation
dotnet add package HeroWave
Add the namespace to your _Imports.razor:
@using HeroWave.Components
Quick Start
<WavyBackground Title="Hello World"
Subtitle="Animated waves behind your content"
Height="60vh">
<button>Get Started</button>
</WavyBackground>
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
Title |
string? |
null | Large heading text centered over the waves |
Subtitle |
string? |
null | Smaller text below the title |
ChildContent |
RenderFragment? |
null | Custom Razor markup rendered below title/subtitle |
Height |
string |
"100vh" |
CSS height of the container |
Colors |
string[] |
["#38bdf8", "#818cf8", "#c084fc", "#e879f9", "#22d3ee"] |
Wave line colors |
BackgroundColor |
string |
"#0c0c14" |
Background fill color |
WaveCount |
int |
5 |
Number of wave layers |
WaveWidth |
int |
50 |
Stroke width of each wave (px) |
Blur |
int |
10 |
Gaussian blur radius (px) |
Speed |
string |
"slow" |
"slow" or "fast" animation speed |
Opacity |
double |
0.5 |
Wave opacity (0.0 - 1.0) |
CssClass |
string? |
null | Additional CSS class on the overlay |
Examples
Hero Section
<WavyBackground Title="Build Amazing Apps"
Subtitle="A reusable wavy background component for Blazor"
Height="60vh">
<a href="/signup" class="btn">Get Started</a>
</WavyBackground>
Full Page Background
<WavyBackground Height="100vh"
Speed="fast"
Colors="@(new[] { "#22d3ee", "#818cf8", "#e879f9" })"
WaveCount="7"
Opacity="0.6">
<div class="my-layout">
<nav>...</nav>
<main>...</main>
</div>
</WavyBackground>
Color Presets
Ocean Aurora - cool blues and greens
<WavyBackground Colors="@(new[] { "#0ea5e9", "#06b6d4", "#14b8a6", "#10b981", "#34d399" })"
BackgroundColor="#021a2b" WaveCount="6" WaveWidth="60" Blur="14" Opacity="0.6" />
Sunset Fire - warm oranges, reds, pinks
<WavyBackground Colors="@(new[] { "#f97316", "#ef4444", "#ec4899", "#f59e0b", "#fb923c" })"
BackgroundColor="#1a0a00" Speed="fast" Opacity="0.55" />
Neon Cyberpunk - electric, high contrast
<WavyBackground Colors="@(new[] { "#ff00ff", "#00ffff", "#39ff14", "#ff3131" })"
BackgroundColor="#0a0a0a" WaveCount="4" WaveWidth="35" Blur="8" Speed="fast" Opacity="0.7" />
Minimal Frost - white/silver on dark, subtle
<WavyBackground Colors="@(new[] { "#e2e8f0", "#94a3b8", "#cbd5e1", "#f1f5f9" })"
BackgroundColor="#0f172a" WaveCount="3" WaveWidth="70" Blur="20" Opacity="0.3" />
Northern Lights - purples, greens, ethereal
<WavyBackground Colors="@(new[] { "#a855f7", "#6366f1", "#22d3ee", "#4ade80", "#818cf8" })"
BackgroundColor="#0c0720" WaveCount="7" WaveWidth="55" Blur="16" />
Molten Gold - luxurious golds and ambers
<WavyBackground Colors="@(new[] { "#fbbf24", "#f59e0b", "#d97706", "#b45309", "#fcd34d" })"
BackgroundColor="#1c1208" Speed="fast" Opacity="0.45" />
Contributing
# Clone and build
git clone https://github.com/LiamBoyleNie/hero-wave.git
cd hero-wave
dotnet build
# Run the demo app
dotnet run --project demo/HeroWave.Demo
# Run unit tests
dotnet test tests/HeroWave.Tests/
# Run E2E tests (requires Playwright browsers installed)
dotnet test tests/HeroWave.E2E/
License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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.
-
net10.0
- Microsoft.AspNetCore.Components.Web (>= 10.0.4)
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 |
|---|---|---|
| 2.1.2 | 161 | 3/28/2026 |
| 2.1.1 | 86 | 3/21/2026 |
| 2.1.0 | 89 | 3/21/2026 |
| 2.0.3 | 85 | 3/21/2026 |
| 2.0.2 | 88 | 3/21/2026 |
| 2.0.1 | 82 | 3/21/2026 |
| 2.0.0 | 83 | 3/21/2026 |
| 1.0.1-beta.2 | 45 | 3/20/2026 |
| 1.0.1-beta.1 | 45 | 3/20/2026 |
| 1.0.0 | 92 | 3/20/2026 |