RazorConsole.Gallery
Build interactive console applications using .NET Razor
Install
No framework information available.
README
RazorConsole
Build interactive console applications with .NET Razor components.
Install
dotnet add package RazorConsole.Core
Usage
// Counter.razor
@using Microsoft.AspNetCore.Components
@using Microsoft.AspNetCore.Components.Web
@using RazorConsole.Components
<Columns>
<p>Current count</p>
<Markup Content="@currentCount.ToString()" Foreground="@Spectre.Console.Color.Green" />
</Columns>
<TextButton Content="Click me"
OnClick="IncrementCount"
BackgroundColor="@Spectre.Console.Color.Grey"
FocusedColor="@Spectre.Console.Color.Blue" />
@code {
private int currentCount = 0;
private void IncrementCount()
{
currentCount++;
}
}
// Program.cs
await AppHost.RunAsync<Counter>();
Component Gallery
Explore the built-in components interactively with the RazorConsole Component Gallery. Install the tool globally and launch it from any terminal:
dotnet tool install --global RazorConsole.Gallery --version 0.0.1
After installation, run razorconsole-gallery to open the showcase and browse component examples rendered in the console. The gallery includes quick links back to this README for more details.

Community & support
- File issues using the GitHub Issues tab.
License
This project is distributed under the MIT License. See LICENSE for details.
Changes from Previous Version
Adoption Assessment
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.