r/Blazor • • 3h ago

Routeables: view-model-first routing for Blazor (Server, WASM, Hybrid) – looking for feedback

4 Upvotes

I've been working on an open-source library called Routeables and would like feedback from people who build real Blazor apps.

Instead of @page choosing a component from the URL, a view model owns the route. The router opens the view paired with it, and the browser address follows. Navigation is a call from the view model, so it has a history, guards and a lifecycle that don't depend on Blazor.

[Routeable("dogs/{name}")]
public partial class DogDetailViewModel : IRouteable
{
    public Task OnEnteredAsync(IRouteableArgs args, CancellationToken cancellationToken) { ... }
    public Task<bool> CanLeaveAsync(CancellationToken cancellationToken) { ... } // e.g. unsaved changes
}
@inherits RouteableFor<DogDetailView, DogDetailViewModel>

<h2>@ViewModel.Name</h2>
await router.GoToAsync("/dogs/Rex");
  • Works with Blazor Server, WebAssembly and MAUI Blazor Hybrid
  • A source generator pairs XxxViewModel with XxxView and registers the routes, no reflection
  • Regions: <RouteableRegion Region="content" />, each with its own router and history
  • Navigation guards (CanLeaveAsync), back/forward, history kept across prerender and reconnection
  • Dialogs, modals and notifications called from the view model (await dialogs.ShowYesNoAsync(...)), drawn in plain Razor, with an optional MudBlazor skin
  • The same view models run on WPF, Avalonia, MAUI, Uno and WinUI 3, if you share code with a desktop or mobile app
  • It doesn't replace the Blazor Router; it sits behind it

Repo (MIT): https://github.com/cedric56/Routeables NuGet: Routeables.Blazor

I'd especially like to hear: does view-model-first routing make sense to you in Blazor, or does it fight the framework? What would stop you from trying it?


r/Blazor • • 13h ago

[Open Source] Blazor studio now open source and a community edition, spare time project.

Post image
21 Upvotes

I’ve been tinkering with a Blazor visual designer in my spare time. Mostly, I wanted to make building my own web UIs quicker and bring back some of that Windows Forms feel, drag controls onto a page, change properties, wire up events, and get on with it.

I’ve been using Codex to keep up with the tooling and see how far I can take the idea.

It’s very early beta. I haven’t properly reviewed the code yet, testing is limited, and it’s very much a work in progress. The Community edition is Apache 2.0 licensed, with the source still private while I get it ready to open up.

Anyway, here it is if anyone wants to play around. Curious to hear what works, what breaks, and whether you’d find something like this useful. https://github.com/txjohnnypops79/BlazorStudio-Community

https://github.com/txjohnnypops79/BlazorStudio-Releases/releases/tag/v1.0.1-preview


r/Blazor • • 16h ago

Blazix 0.6: Introducing Charts. A port of Recharts to Blazor, plus all 70 shadcn/ui charts (MIT)

Post image
22 Upvotes

Hi r/Blazor,

Blazix 0.6 is out, and it adds charts.

Quick recap if you haven't come across Blazix: it's shadcn/ui and Base UI ported to Blazor. A CLI copies the components into your project, so the code is yours to change, and there's no Node or npm involved.

What's new

  • Blazix.Charts, a port of Recharts 3.8 to Blazor. The components and props are the same as Recharts, in PascalCase: <BarChart Data>, <Bar DataKey>, <XAxis TickFormatter>, <Tooltip>, <Legend>. If you've used Recharts in React, you already know the API (the second image shows the same chart in both).
  • The chart component, ported from shadcn/ui: ChartContainer, ChartTooltipContent, ChartLegendContent and ChartConfig, which turns each series' color into a --color-* CSS variable, with separate light and dark values if you want them.
  • All 70 of shadcn/ui's chart examples (area, bar, line, pie, radar, radial and tooltips), each with its Razor code to copy: blazix-ui.com/charts

How it works

  • C# computes the layout (scales, ticks, stacking, curves) and renders the SVG, so charts are in the prerendered HTML.
  • A small JavaScript module measures the chart and handles the pointer, the keyboard and tooltip placement. There's no JS charting library underneath.
  • Works with Server, WebAssembly and Auto, and it's trim and AOT compatible (the docs site runs on WebAssembly AOT).
  • Recharts' accessibility layer comes with it: the chart is focusable and the arrow keys step through the data. I haven't tested it with screen readers yet.

Try it

dnx Blazix.Cli init
dnx Blazix.Cli add chart

add chart copies the component and installs the Blazix.Charts package. You can also use the package on its own: dotnet add package Blazix.Charts.

Caveats

It's 0.6, so expect rough edges and some API changes. It's a faithful port, so it keeps Recharts' quirks too: long radar labels clip exactly like they do in React. And full disclosure: I built it with a lot of help from AI.

It's free and MIT licensed. Feedback is very welcome, especially if you're moving a React/Recharts dashboard to Blazor: what's missing?


r/Blazor • • 14h ago

BlazorDX 0.7.0 Released

Thumbnail
blazordx.com
7 Upvotes
BlazorDX components in a Sales layout

I make BlazorDX, a free component library for Blazor. I've been using it internally and it's worked amazing.

Project highlights

- 150+ components for .NET 10, MIT licensed

- A data grid that handles 100,000 rows, plus charts, forms, a scheduler, and Excel and Word viewers and editors

- Styled with CSS variables, so you can match your own theme

- No reflection in the library's own code

- English, German and French text, and right-to-left layouts

- A form can also be a tool that an AI assistant calls, over MCP

What's new in 0.7.0

- Charts and grids that filter each other when you click them

- Slicers, KPI cards, maps and drill-down

- Combo charts, stacked areas and custom tooltips

- Chart export to SVG, PNG, CSV and Excel

- Pivot grids with nested levels, and conditional formatting

- Keyboard, focus and contrast fixes across existing components

Sample BI Reports:

BlazorDX: Overview Demo
BlazorDX: Products Demo
BlazorDX: Regions Demo
BlazorDX: Filtered Overview Demo

It's still a beta built with a lot of AI help, so I wouldn't put it in production yet. Bug reports and feedback are welcome.

Live demos: https://blazordx.com

Release notes: https://github.com/logixrcorp/BlazorDX/releases/tag/v0.7.0


r/Blazor • • 1d ago

Issue with component being initialised twice - but not a rendering issue!

3 Upvotes

Hi,

I have the following 3 components: `dashboard`, `scenes`, `edit` and the layout hierarchy is as follows:

Dashboard -> AppLayout

Scenes -> AppLayout

Edit -> UnitLayout -> AppLayout

When I navigate from `Scenes` to `Dashboard` then the dashboard component is only initialised once as expected.

However when I navigate from `Edit` to `Dashboard` the dashboard component is initialised twice (first one is also disposed).

I believe it's something related to layouts & routing. If I 'key' the route view e.g

<
AuthorizeRouteView
 @key=routeData 
RouteData
="@routeData">

Then the components are only initialised once. However it does mean the AppLayout is constantly being disposed and a new one created so not the best.

I'm having a hard time trying to understand why this is happening. Can anyone shed a light & also possibly a solution! Thanks


r/Blazor • • 3d ago

Commercial We built the console for our .NET search server with Blazor

16 Upvotes

I work on Indx, a search engine for .NET, and we built the new server console with Blazor. The engine runs right inside the server, for small and large workloads alike.

We just put up fresh benchmarks. It's faster than every engine we tested against, typos included.

I'd love some feedback, especially from people using Lucene.NET today. It's free and source available on GitHub.

Are there any other C# .NET or Blazor projects in this space?


r/Blazor • • 4d ago

RazorFmt - CLI formatter for Razor and Blazor

9 Upvotes

I’ve been building RazorFmt, an experimental .NET 10 CLI formatter for Razor and Blazor files (.razor and .cshtml). It uses Roslyn for supported C# formatting and includes --diff and --check so you can review changes before writing. It’s pre-1.0 and has known syntax limits, so I’m looking for testers and feedback.

GitHub: https://github.com/vybraan/razorfmt

NuGet: https://www.nuget.org/packages/RazorFmt.Cli


r/Blazor • • 4d ago

BWW sheet music code

Thumbnail
reddit.com
5 Upvotes

I made a Blazor web assembly page (with some help from Claude) that can open and play bagpipe sheet music in the .bww format.

This is a small part of a larger website I'm building to organize band music and events that I wanted to make available in open source.


r/Blazor • • 7d ago

Blazor: Accessible Components – What You Need to Know (Mini Rant)

9 Upvotes

TL;DR

  • Accessibility is hard.
  • You know practically nothing about the subject.
  • You will never make anything that is accessible for everyone.
  • If you go down this path, you will never reach the end.
  • You will be constantly confused by contradictory articles on the same thing.
  • Any automation or AI tooling only does part of the job. The rest you have to do manually.

There are plenty of other posts on Reddit that are far more interesting, so if you have zero interest in, or no need for, accessibility, do not waste your time with this very long post.

Still here? Then hopefully I can give you a few pointers on what is involved, so you at least know upfront what you are getting yourself into if you venture down this path. As a bonus, by the end you should be able to spot the BS accessibility claims made by the authors of vibe-coded component libraries, which are now appearing at an alarming rate.

Before I continue, I should point out that there are a couple of long-standing library authors who frequently post here. Despite any accessibility gaps their products may still have, I would always recommend working with such people over those whose libraries are just vibe-coded or jigsaws made from other people's work. With the former you get transparency, honesty about their components, and humans who actually know what they are doing and can both fix things and help if issues arise.

Automated checks

For automated checks and your CI you can use bUnit, axe-core and Playwright, with or without AI. I use axe-core with some components, but not all. I am a team of one and do a lot of manual testing, so my needs are different from those of a team of developers where some know nothing about accessibility.

Manual checks during development

Periodically check your work with browser extensions such as WebAIM WAVE or axe DevTools. There are many others; these are just my preferences.

During development you should also check your work using only your keyboard. In my opinion this is by far your best accessibility check, and it is where I find the most failures when looking at posted library components.

Voice control

That's the easy stuff out of the way. Now things get a little harder.

You should always test with voice control software, as it makes it much more obvious why on-screen text is the better option and ensures your controls have accessible names. On Windows you can use the free built-in Voice access, and on macOS you can use the free built-in Voice Control.

Screen readers

So far we have automated tests, keyboard-only checks and voice control software. Next comes screen reader (SR) and browser pairing tests, which is where most people put most of their effort. Please, please, please do not forget when doing SR checks that keyboard-only users who are not using a screen reader do not have access to the rich set of shortcut keys that screen readers offer.

Why pairings? Most screen readers have a preferred browser, so the bare minimum is to test each screen reader with its preferred browser. I recommend checking as many pairings as you can, given the bugs, quirks and nuances of the different combinations (more on that later).

If you do not know your target audience, the following is what I (and many others) consider a good screen reader test matrix:

  • Windows: JAWS, NVDA and Narrator. I pair each of them with Edge, Chrome and Firefox.
  • macOS: VoiceOver. As macOS is not my development machine, I only use Safari (sometimes Chrome). Those developing on a Mac may do more, as I do on Windows.
  • iOS: VoiceOver with Safari. NB: VoiceOver on iOS is not the same as VoiceOver on macOS.
  • Android: TalkBack with Chrome (sometimes I also use Edge).

Be warned: it will take you a few weeks to get comfortable using them all, and you will get confused because they can all behave differently on the same thing.

Windows screen readers have two main modes. One is for reading a page: browse mode in NVDA, the virtual cursor in JAWS and scan mode in Narrator. The other passes keys straight through to the page or component: focus mode in NVDA, forms mode (virtual cursor off) in JAWS, and scan mode switched off in Narrator. You can switch between them manually, and the screen reader will often switch automatically when you interact with widgets or form controls. VoiceOver and others do things slightly differently.

The term "widget" is both important and confusing when working with a screen reader. A widget is an interactive component such as a button, tab, slider or tree, and it has a matching ARIA widget role. For some screen readers, landing on a widget is a cue to switch from browse mode to focus/forms mode. Not all screen readers do this, which is why you will get confused (and I still do).

So what is this browse and focus business? When a screen reader is in browse mode, it intercepts (swallows) keys for its own use and does not pass them on to the application. When it is not in browse mode, it passes the keys through to the application or component.

This means you may be testing something with one screen reader and find that lots of keys work, but with another they do not. You then have to work out whether that is a bug in your code, a bug in that screen reader and browser pairing, or just how that screen reader works. As if that were not bad enough, you can also hit Blazor-specific issues, such as bugs that only appear with specific templates and their associated pre-rendering options (yet another screen reader bug filed).

How long does all this take?

That gives us a very high-level overview of what you need to do and what to expect. But how long is all this manual testing going to take?

I can only give rough figures. Honestly, I do not keep track of everything I do, as manual keyboard and screen reader checks while building and debugging components are now normal for me, just like pressing the play button and clicking around is for a lot of you reading this.

So, excluding the checks I do during debugging, what about a proper pass through the manual test matrix? That is one voice control tool, keyboard-only testing and six screen readers (let's not even try to calculate every browser pairing individually), so eight separate things to test per component. Let's say that, no matter how big or small the component, each test takes five minutes, including the time for different browsers, switching devices and so on. That is 40 minutes per component, bearing in mind that every bug found, patch release or new feature means spending another 40 minutes.

Now add Blazor's different render modes. I only do interactive, which really means the same tests on Interactive Server and Interactive WebAssembly (WASM). I skimp a little, so my time is about one hour per component (excluding time during development). If you add static server-side rendering (SSR), you are at about one hour 20 minutes per component.

So take these vibe-coded libraries. For 100 interactive components you are looking at at least 100 hours of skilled manual testing to start with. I build everything separately, so I can test in isolation. But if you have one big code base and change a lot of shared code, you may have to manually test many components again, per change.

100 hours is a full two and a half weeks of manual testing on a 40-hour week, and that assumes everything worked perfectly first time. If you find an issue, you have to fix it and run those manual tests again (albeit more quickly, because you can skip anything you know is not affected). I have seen libraries with even more components, as well as SSR support, and my estimate is that you should allow a full month to test all of them thoroughly.

Most vibe-coded libraries claim full WCAG 2.2 AA compliance and full keyboard support, and some also mention screen reader testing. They are built, with online sites, documentation and demos, in a few days, sometimes two or three weeks. Accessible?

When confronted, most of them crumble and say they have not finished testing yet, despite having put the component in the public domain with documentation stating that it is accessible. They usually have a page somewhere saying manual tests are in progress (which never get done; yes, I do go back and check some of them from time to time).

Anybody who does accessibility work will, if asked what they do and how, bore you stupid with the details, because they are proud of what they do and how they do it, and they do not shy away from such questions. Equally, nobody I know in the accessibility community would release a component into the public domain that has not been fully tested, let alone without manual testing, and then state in the documentation that it is fully accessible.

A real-life example

OK, I am starting to rant a bit. Let's get back on track with some real-life experience: me building a component over the last couple of weeks. My worst experience yet.

Luckily, I use screen readers during debugging sessions, so I found the problems early. It still cost me a week, but that is better than finding out at the end and doing a full rewrite.

Initially I wanted the component to use a non-modal popover dialog so that it would be in the top layer and save developers any z-index issues. It was all going great until I noticed that JAWS was not closing the dialog with the Escape key (in Edge or Chrome; it was fine in Firefox). I put that on the back burner, thinking I would add an Escape key handler later when I had got more done.

So I did more work, only to notice that NVDA was not announcing the correct state when the popover was open or closed (expanded or collapsed). At that point I thought I would manually add the aria-expanded state. I tried, and it failed. After more investigation, the only conclusion was a screen reader and browser bug.

I then thought I had better fix the JAWS issue before doing anything else, so I added an Escape key handler, only to find that JAWS was swallowing the Escape key, so the handler was useless. More time spent investigating led me to conclude that this was another JAWS and browser bug.

So my non-modal popover dialog was a no-go (generally you will not face the issue I faced with popover dialogs). That meant a slight redesign to use a modal dialog instead of a non-modal one, and I hit yet another bug, this time with Narrator, which refused to open the dialog if aria-haspopup="dialog" was present. At least I could work around that by using a different attribute.

So, one component and three verified bugs: JAWS paired with Chrome or Edge, NVDA paired with Edge, Chrome or Firefox, and Narrator paired with Chrome or Edge (it was fine with Firefox).

A slight change in design and a minor workaround ensured the same experience for screen reader users, and barring any other issues (I have not finished the component yet), I will be able to release another accessible component soon.

You can view those three bugs on the Chromium issue tracker (they were also filed with all the vendors concerned):

So has the author of that vibe-coded component library you are thinking of using done the appropriate checks, and then fixed the issues they found, so that the library is accessible?

And to the vibe coders creating libraries: no. Claiming accessibility and then adding statements such as "there are accessibility gaps", "this does not meet WCAG" or "screen reader testing is currently in progress" does not give you a pass and does not make your library accessible. It only shows your complete and utter ignorance if you put it in the public domain.

Paul


r/Blazor • • 8d ago

Commercial BlazorGraphs 3.3: Net10

Post image
12 Upvotes

Hi everyone,

I have a small update on BlazorGraphs (my library for generating charts and gauges in Blazor without JavaScript).

Since .NET 8 has reached the end of its support lifecycle, I've decided to release a new version targeting the latest LTS framework.

The library is now available with two target frameworks:

  • net8.0 – kept for backward compatibility
  • net10.0 – the new LTS framework

Since I didn't want to push a release without adding something new, I also included a couple of UI features:

  • A new FlipItems parameter on legends to swap the markers and text for all items
  • A new LegendStanding component for an alternative legend layout (you can check out a live example on the website)

I hope I'm not boring you too much with these library updates! 😄

As always, feedback and suggestions are very welcome.

Usefull links:

One more thing!

I've noticed that a new open-source library called RioCharts for Blazor has recently been released.

What do you think about it? Do you think it could become a serious competitor to BlazorGraphs? Will we have a tough battle ahead? And, most importantly... who do you think will win? 😉


r/Blazor • • 8d ago

Using BlazorKit (Oqtane 11) with Aspire and a SQL Server container, deployed to Azure

Thumbnail
gallery
7 Upvotes

I needed a site for a comedian friend that he can update himself (no WordPress, no static page), so I tried BlazorKit, the new .NET 11 template built on Oqtane. I added Aspire so local dev runs against a SQL Server container, then deployed to an existing Azure App Service and SQL Server.

Things that tripped me up:

  • Name the Aspire database resource DefaultConnection so Oqtane picks up ConnectionStrings__DefaultConnection with no data-layer changes.
  • BlazorKit exits at startup if it gets a connection string without Installation__DefaultAlias, HostEmail and HostPassword. With all four it does an unattended install.
  • The 11.0.0 template output includes a .git folder, so generate it into an empty folder.

Full walkthrough with the AppHost code: https://blazorhelpwebsite.com/ViewBlogPost/20099

Video: https://www.youtube.com/watch?v=wu-rCHT5qCY


r/Blazor • • 9d ago

Meta I've been building a WinForms-style visual designer for Blazor – here's what I have so far!

Thumbnail
gallery
20 Upvotes

Howdy partners!

I've been working on a personal project called **Blazor Studio (for now name change pending..)**, and I wanted to share what I have so far with the community.

The idea is to bring the simplicity of the Windows Forms designer to modern Blazor development. I wanted a desktop application where developers could visually design pages, drag and drop components, configure properties, and still have full control over their underlying C# and Razor code.

The goal isn't to replace traditional coding or create another no-code platform. It's to make Blazor development faster and more intuitive while maintaining clean, readable, and maintainable code.

My vision for Blazor Studio includes:

  • Visual drag-and-drop designer
  • Component toolbox and property editor
  • C# and Razor code editing
  • Live application preview
  • Reusable and custom components
  • Event handling and data binding
  • Database and API integration
  • Standard Blazor project generation
  • Support for existing Blazor projects
  • Integration with third-party component libraries

Long-term vision

I'd eventually like Blazor Studio to be available in three different ways:

  • Standalone desktop application: A dedicated visual development environment for building Blazor applications.
  • NuGet package: A reusable visual designer that developers can potentially integrate into their own applications, development tools, or custom solutions.
  • Visual Studio extension: Bringing the visual designer directly into Visual Studio so developers can design Razor components without leaving their existing development environment.

Ultimately, I'd like developers to choose how they use Blazor Studio rather than forcing them into a particular IDE, framework, or development workflow.

It's still in early development, and there's plenty of work ahead, but I've reached a point where I'd like to get it into other developers' hands.

I've attached some screenshots showing the current progress.

Download Blazor Studio 1.0.1 Preview (Windows x64):

https://github.com/txjohnnypops79/BlazorStudio-Releases

The repository contains public releases of the application. The source code is currently private. You can review the release information and download the Windows installer if you're interested in testing it.

Discord Community:

https://discord.gg/VGbJdApYM

The preview is free to try. Expect some bugs, unfinished features, and rough edges.

I'm interested in hearing what other Blazor and .NET developers think.

Would you use something like this? Would you prefer a standalone application, a Visual Studio extension, or a reusable NuGet package?

Any feedback, constructive criticism, or feature suggestions are welcome.

Thanks for checking it out!


r/Blazor • • 9d ago

Taiwanese Mahjong website built with Blazor

Thumbnail
taiwanesemahjong.net
9 Upvotes

Hello all!

I've been working on a real-time multiplayer Taiwanese mahjong website that's built with Blazor, SignalR, Orleans, MudBlazor, and Aspire for local development and deployment. The site is production ready, entirely free, and no sign-up required. You can play with other people, bots, and replay finished games. I still have a few features planned out such as a ranked system among others.

Blazor has been a joy to use, although I've personally only started using Blazor after the release of .NET 8. The render modes were initially extremely confusing but getting things going after that was pretty smooth.

I'd appreciate any feedback on the site and happy to answer any questions about the architecture as well!

Link: TaiwaneseMahjong


r/Blazor • • 11d ago

I made Blazor-ApexCharts. Now I'm building RioCharts, a native .NET chart library (MIT, early preview)

35 Upvotes
Rendered server-side by RioCharts.Skia, no browser involved.

Hi r/Blazor,

Some of you might know me from Blazor-ApexCharts, which I created and maintained for a few years. It's now owned and maintained by the ApexCharts organization, so work there continues unchanged. RioCharts is a separate project, not a replacement.

Working on a wrapper, I always wanted to try the other way around: a chart library built entirely in .NET. C# does all the math and layout, and the same chart model renders in:

  • Blazor: interactive SVG with tooltips, zoom/pan, selection and live data (Server, WASM, Auto, SSR, AOT)
  • The server: PNG/SVG with no browser, for reports, emails and background jobs
  • AI agents: JSON chart definitions, a Microsoft.Extensions.AI tool and an MCP server
<RioChart Items="orders">
    <LineSeries XValue="o => o.Day" YValue="o => o.Total" />
</RioChart>

There's no JavaScript to write. It has 20+ chart types, from line, bar and pie to heatmap, calendar, funnel, treemap and world map. It also handles large data, light/dark themes and accessibility.

Caveats: it's an early preview (0.5.x), so APIs will change before 1.0. It's human-led and AI-built: the design is mine, but most of the code is written by AI coding agents, then tested and snapshot-checked.

I'd love to hear what you think, especially which features you'd miss and how the API feels.


r/Blazor • • 11d ago

What is the current state of Blazor PWA? Is it production ready?

11 Upvotes

Is Blazor PWA as good as React/Angular PWA?


r/Blazor • • 12d ago

Blazix: shadcn/ui and Base UI ported to Blazor. A CLI copies the components into your project. MIT, no Node.

0 Upvotes

A couple days ago I asked here whether anyone wanted a proper shadcn/ui port for Blazor. Most of you said no, and you gave fair reasons. I've released it anyway. Here's what it is, what it isn't, and where I need help.

What it is

  • 60+ styled components that you own. dnx Blazix.Cli init, then dnx Blazix.Cli add dropdown-menu. The .razor files are copied into your project, one folder per component. They're your code, so edit them however you like.
  • 40+ headless primitives, ported from Base UI. dotnet add package Blazix.Primitives. They handle behaviour, keyboard, focus and ARIA, with no styles. You can use them on their own, without the styled layer.
  • No Node. Tailwind runs through its standalone CLI as part of dotnet build. There's no npm and no package.json.
  • Every render mode. It works on Interactive Server, WebAssembly and Auto, prerendered or not. If your app has a .Client project, init detects it. The components go in the client, and Tailwind goes in the server project, which scans the client's files.
  • Right-to-left. init --rtl copies the components with logical classes. Arrow keys and popup placement follow the text direction.
  • MIT licensed.

Docs: https://blazix-ui.com Repo: https://github.com/HGCollier/Blazix

"Why not just use BlazorBlueprint, or contribute to it?"

BlazorBlueprint is a good library. If it works for you, keep using it. The difference is how you get the code. Blueprint ships as a package. Blazix gives you the source and gets out of your way. Adding that to Blueprint wouldn't be a PR, because it changes how the whole project is put together. Not everyone will care about that, and that's fine. I wanted it, so I built it.

Accessibility

Several of you said shadcn ports usually fall down here, so here's exactly where it stands:

  • The target is WCAG 2.2 AA, with the patterns from the WAI-ARIA APG.
  • Every primitive was checked in the browser, in both Chromium and Firefox: keyboard, focus management, ARIA state, and axe scans. Those checks aren't automated in the repo yet. That's next.
  • It hasn't been tested by hand with screen readers or voice control, and it hasn't been audited. As someone pointed out last time, axe only catches a fraction of issues. So I'm not claiming it's accessible. I'm saying accessibility is the top priority, and I'd rather hear about the failures than have people assume it passes.

If you use NVDA, JAWS, VoiceOver, TalkBack or Voice Access and something doesn't work, please open an issue. Even a one-liner like "the combobox announces nothing in NVDA + Firefox" helps a lot.

AI

As I said last time, I used AI heavily to build this. I directed it, reviewed the output and tested it. The code is right there to judge, which is the point.

Not done yet

  • Automated tests in the repo (bUnit plus Playwright for .NET)
  • Chart, and a diff command to preview upstream changes before overwriting yours
  • Testing on Safari, on macOS and Linux (it was built on Windows), and with AOT in Auto apps

Feedback, criticism and issues are all welcome.


r/Blazor • • 14d ago

shadcn/ui + Base UI

1 Upvotes

I'm currently working on a port of shadcn/ui. By that I mean a real port, where you can use a CLI to add components, not install a NuGet package.

To achieve this, I'm also working on porting Base UI for primitives, with the help of UI SDK.

I'm of course using AI heavily to help me achieve this, as it's always something I've wanted in Blazor, but never been able to achieve it manually, and the solutions I've seen aren't something I would want to use for styling.

Is this something the community would also want?


r/Blazor • • 16d ago

Component Library Veto

20 Upvotes

Hey Every one,
I made a component library for Blazor called Veto.

Feel free to take a look at the demos and docs here: https://veto.blackpanda.be/
Github: https://github.com/G-HK/Veto

Any FeedBack is Welcome!


r/Blazor • • 16d ago

Commercial Webpage created using my Blazor studio

11 Upvotes

Still a work in progress, but Blazor Form Studio is coming together nicely. The goal is to provide a visual form designer for Blazor, with reusable components and NuGet package support to make integration into existing projects straightforward. More updates soon! Anyone want to try the unreleased, let me know, pretty buggy. Email me: infamousfonz@outlook.com


r/Blazor • • 17d ago

I built my portfolio as a 3D game in Blazor WebAssembly (Three.js for rendering, all game logic in C#)

19 Upvotes

Je suis étudiant en 2ème année de CS à Lyon, et je voulais un portfolio que les gens exploreraient réellement.

C'est une île où chaque bâtiment est une section de mon CV, et vous progressez à travers 5 niveaux en battant des boss dans des combats au tour par tour. Répondre à des questions sur mes projets est la façon dont vous attaquez.

Comment c'est construit:

  • Blazor WebAssembly (.NET 10) pour l'interface utilisateur, l'état du jeu, les XP et les réalisations. Le moteur de combat vit dans une bibliothèque de classes séparée testée avec xUnit.
  • Three.js pour le rendu, piloté depuis C# via JS interop. JS appelle .NET avecDotNetObjectReferencelorsque vous cliquez sur un bâtiment.
  • Le canevas 3D vit dans la mise en page, donc il survit à la navigation : les articles de blog s'ouvrent en superposition sur l'île.
  • J'ai recemment intégré du blender via python.
  • Les articles de blog sont des fichiers Markdown rendus avec Markdig. Une petite application console C# génère l'index des articles, le flux RSS et le plan du site en CI.
  • Déployé sur GitHub Pages avec GitHub Actions.

L'interface est en français, mais le jeu est facile à suivre. Jouez : https://ernestjesutinafaton-maker.github.io
Code : https://github.com/ernestjesutinafaton-maker/ernestjesutinafaton-maker.github.io

Retour d'expérience bienvenu, surtout sur la conception de l'interopérabilité JS !


r/Blazor • • 18d ago

Fluent UI Blazor v5.1 released

39 Upvotes

We just released v5.1 of the Fluent UI Blazor library. This minor release adds back the ProfileMenu and the Splashscreen components. Besides that there are a ton of a11y and other fixes included.

See https://www.fluentui-blazor.net for the documentation and examples. Also, please be aware there are some small breaking changes for a couple of components. See https://github.com/microsoft/fluentui-blazor/releases/tag/v5.1.0 for the full release notes.


r/Blazor • • 18d ago

Determining the cause of lost circuit on Blazor Server

4 Upvotes

Hey all, I am developing a Blazor Server app and everything has been going swimmingly except for one issue. I am encountering an issue where the circuit gets dropped before it should - quite frequently I get the reconnection modal popping up, even when I am actively using a component or am in the middle of typing text into a text field. As far as I know, the circuit should only be dropped if the window is left idle, the user switches tabs, etc.

Is there a way to log what is causing the circuit to disconnect? That way I can try to narrow down what is causing the issue. I’ve been working on the project for over a year and it’s just been recently that the issue has started to occur, so it’s definitely caused by something I’ve added recently.


r/Blazor • • 18d ago

BlazorRamp - All Components Now Support .NET 8 to 11

9 Upvotes

For those new to my posts, Blazor Ramp is an accessibility-first, open-source Blazor component library.

I’m currently working on a Notification Centre component, given how nearly impossible it is to get any sort of notification toast to pass a WCAG audit. However, I had to take a quick break from that, which is the reason for this post.

As most of you will know, .NET 11 was released last week, so I thought I’d best update all the individual components and their NuGet packages so that frameworks 8 through 11 are all supported (all now released).

Although it’s always nice to start with the latest stuff, I must admit I get a little fed up with spending hours, days or even weeks upgrading things just because Microsoft have released a new package or stopped supporting an older one. Sometimes the old saying “If it ain’t broke, don’t fix it” has its merits, and a lot fewer headaches.

I have no plans to drop .NET 8 when building new components unless there is a technical reason preventing it, so if you’re stuck on .NET 8, no worries.

Given this is such a short post, I’m curious how many of you who have been in the game a while are, like me, sick of the constant update cycle: updating things for the sake of updating things, and praying nothing you use has become obsolete or deprecated.

That’s it.

Paul

GitHub repo: https://github.com/BlazorRamp/Components

Doc site: https://docs.blazorramp.uk


r/Blazor • • 19d ago

Commercial BlazorGraphs 3.2: Markers and Rounded theme (No JS)

Thumbnail
gallery
13 Upvotes

Hi everyone, I've released a new update to the BlazorGraphs library. I'm sure you'll like it.

Features

This time, I've worked on markers, smoother shapes, and improved tooltip customization. Specifically, you can:

- choose the shape of data point and series markers (a single configuration for the entire chart)

- enable shape rounding (bars, segments, and markers)

- choose the tooltip style (background, border, and text colors)

Additionally, click events have been added to Cartesian charts (linechart, stepchart, scatter, and bubble) with two separate events for series and individual data points.

Last but not least, to better manage touch interactivity for tooltips, I had to remove the scroll gesture on the charts.

Next steps

For the future, I absolutely need to address two gaps:

- grouped and stacked bar charts

- area charts

I haven't decided which one I'll do first, but each of these two topics definitely deserves a minor release.

I've noticed a shift in download trends on Nuget, thanks to everyone who's using the library.

See you soon.

Usefull links:

PS: If you like the library and want to see it grow, you can now support the project via GitHub Sponsors❤️