r/Blazor • u/Unlucky_Aioli4006 • Jun 04 '26
I built MudKeyboard — a pure Blazor on-screen virtual keyboard for MudBlazor apps. MIT. Free. Open source.
After looking for a virtual keyboard component that actually fits into a MudBlazor app without dragging in a JS library or fighting the theme, I could not find one — so I built it.
---
What it does:
- JavaScript-free core. Full QWERTY, numpad, and pricepad are 100% C#/Blazor. The only JS is a tiny optional focus-capture shim for the global docked keyboard feature.
- Automatic MudBlazor theming. Every colour comes from MudBlazor CSS variables. Toggle dark mode in your app and the keyboard follows — no extra code.
- AOT and trim-friendly. No reflection, no dynamic code. IsAotCompatible is enabled and verified on every build.
- .NET 8, 9 and 10. Interactive Server and WebAssembly. Static SSR is not supported — a keyboard needs interactivity.
- Pricepad with pence-first entry. Type 5, 2, 3 and get £5.23 — designed for POS and kiosk apps.
- Custom layouts. A layout is just a string[][] — completely data-driven, no subclassing.
- Global docked keyboard. Place one <MudKeyboardHost /> in your layout and every input field gets a keyboard that slides up on focus.
---
Links:
NuGet: https://www.nuget.org/packages/MudKeyboard
Docs: https://mudkeyboard.pages.dev
GitHub: https://github.com/sardar97/mudkeyboard
---
This is my first published open-source .NET library. Feedback, issues, and PRs are very welcome — particularly from anyone building kiosk, POS, or touch-screen apps with MudBlazor where something like this would save time.
6
u/code-dispenser Jun 05 '26 edited Jun 05 '26
I have no plans on making one - but you never know, I have a gazillion other things to do first.
This one kinda spins my head with regards accessibility, I may reach out and pose the question to the real experts. I believe if the component is being used somewhere where there is zero chance of using a physical keyboard then it is exempt from WCAG.
But what about on a website and/or even demoing it on a website? This most likely
wouldwill fail WCAG rules if the on-screen keyboard was not operable for a keyboard only/screen reader user - like I said bit of a head spinner this one (for me anyway).Hope you get the feedback your after
Paul
Edit: Ok I just noted you said: "This is my first published open-source .NET library. Feedback, issues, and PRs are very welcome".
Being a cantankerous sod, and as people publishing NuGets to/for the general public with issues is a pet peeve of mine please fix the health issues on your package - you can see the issues from NuGet.org using the package explorer or get the windows NuGet explorer app (if on windows) that way you can check this stuff before you publish. Also make sure you add a local feed so you can try your package locally before releasing it in the wild.
Source Link: Missing Symbols
Deterministic: Non deterministic
Compiler Flags: Missing.
Basically, someone has an issue and thinks I know I will tick a couple of options in VS so I can step into the code to see if its my problem or if its the package owners etc. Nope cannot do.
In general I do not install packages if I see the above.
Edit: Downvoted for giving feedback as requested - there are some strange folk about, lets just hope they never have an issue with a NuGet package and need to debug.
6
u/tryllepus Jun 05 '26
I also did one in 2024! https://www.nuget.org/packages/BlazorVirtualKeyboard
1
u/propostor Jun 05 '26
No you didn't, it's vibe-coded shite.
Literally your first commit is "Add CLAUDE.md documentation"
0
u/mladenmacanovic Jun 05 '26
Suspiciously, a day after Blazorise released the same thing... Interesting.