Reusable Razor UI components for Gurux web, Windows, iOS, and Android applications. The library provides common form controls, layouts, navigation, tables, dialogs, notifications, file handling, and Markdown rendering for .NET applications built with Blazor.
- .NET 10.0 or later
- A Blazor application (WebAssembly, Server, or Web App)
Add the package to your application when it is available from your configured NuGet feed:
dotnet add package Gurux.UI.ComponentsAlternatively, reference the project directly from a solution:
<ProjectReference Include="..\\Gurux.UI.Components\\Gurux.UI.Components.csproj" />Register the local-storage service in Program.cs:
using Gurux.UI.Components;
builder.Services.AddScoped<IGXLocalStorage, GXLocalStorage>();Add the component namespace to _Imports.razor:
@using Gurux.UI.Components- Inputs: text, number, email, password, phone, IP address, file, checkbox, switch, search, dropdown, date/time, and color controls.
- Layout and navigation: accordion, tabs, panels, menus, context menus, tooltips, callouts, badges, and spinners.
- Data and feedback: tables, progress bars, dialogs, validation UI, notifications, and Markdown rendering.
- Browser integration: local and cookie storage, resource storage, auto-refresh, image handling, and file selection.
GXInputText is a styled text input with normal Blazor two-way binding.
@page "/profile"
<h1>Profile</h1>
<GXInputText @bind-Value="name"
Placeholder="Your name"
CssClass="form-control" />
<p>Hello, @name!</p>
@code {
private string? name;
}GXInputNumber<TValue> integrates with Blazor forms and supports minimum, maximum, and step values.
@page "/settings"
<EditForm Model="this">
<GXInputNumber TValue="int"
@bind-Value="refreshInterval"
Min="1"
Max="60"
Step="1" />
</EditForm>
<p>Refresh interval: @refreshInterval seconds</p>
@code {
private int refreshInterval = 10;
}Use MarkdownView to display Markdown stored in your application or received from an API.
@page "/help"
<MarkdownView Content="@markdown" />
@code {
private const string markdown = """
## Welcome
This page supports **bold text**, links, lists, and fenced code blocks.
""";
}This project is licensed under the GNU General Public License v2.0 only.