blazor-js-interop

Installation
SKILL.md

Blazor JavaScript Interop

Calling JavaScript from .NET

@inject IJSRuntime JS

@code {
    private async Task ShowAlert()
    {
        await JS.InvokeVoidAsync("alert", "Hello from Blazor!");
    }

    private async Task<string> GetValue()
    {
        return await JS.InvokeAsync<string>("localStorage.getItem", "key");
    }

    // With element reference
Related skills
Installs
9
GitHub Stars
11
First Seen
Apr 4, 2026