Skip to content

Add Counter example application#93

Merged
LittleLittleCloud merged 4 commits intomainfrom
copilot/fix-counter-sample-issue
Nov 5, 2025
Merged

Add Counter example application#93
LittleLittleCloud merged 4 commits intomainfrom
copilot/fix-counter-sample-issue

Conversation

Copy link
Contributor

Copilot AI commented Nov 5, 2025

Adds a standalone Counter example to demonstrate RazorConsole fundamentals: interactive buttons, state management, and layout components.

Changes

  • New example application at examples/Counter/

    • Counter.razor: Three-button counter (increment/decrement/reset) with Figlet header and Panel layout
    • Standard .NET project structure with Razor SDK configuration
    • Local README with usage and feature documentation
  • Updated main README: Added Counter to Examples section before LLM Agent TUI as an introductory sample

Example Usage

dotnet run --project examples/Counter

Demonstrates core RazorConsole patterns:

  • Event handling with TextButton and OnClick
  • State updates with StateHasChanged()
  • Layout composition using Rows, Columns, and Panel
  • Styled output via Markup and Figlet
Original prompt

This section details on the original issue you should resolve

<issue_title>Counter sample</issue_title>
<issue_description></issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 2 commits November 5, 2025 12:16
Co-authored-by: LittleLittleCloud <16876986+LittleLittleCloud@users.noreply.github.com>
Co-authored-by: LittleLittleCloud <16876986+LittleLittleCloud@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix counter sample issue Add Counter example application Nov 5, 2025
@LittleLittleCloud LittleLittleCloud marked this pull request as ready for review November 5, 2025 16:05
@LittleLittleCloud LittleLittleCloud merged commit 9f39f7a into main Nov 5, 2025
5 checks passed
@LittleLittleCloud LittleLittleCloud deleted the copilot/fix-counter-sample-issue branch November 5, 2025 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Counter sample

3 participants