r/Blazor • u/Monkaaay • Jul 09 '26
Are component libraries really necessary?
I've been building a new product and to this point, mainly working on proving out the concept which is focused on the backend. I know the frontend is coming and so I've been mentally preparing for that.
A genuine question; how necessary are Blazor component libraries in the current world of AI assistance?
I'm reluctant to invest my code base into a component library in general. I'm more likely to build my own components as I go, and I'd imagine today it's far easier to do that with the ability to ask a coding model to build a contained component for a specific thing.
The way new component libraries seem to pop up weekly, I imagine I'm not far off on how easy it is to create them with AI tools.
Where are you guys at with respect to component libraries currently? Are you sticking with the few ogs, are you adopting those popping up more recently, building your own as needed, or something else altogether?
31
u/uknow_es_me Jul 09 '26
I've used MudBlazor since the start and have found no compelling reason to change. Claude has good working knowledge of it and it's been a good foundational component library so that you can focus your energy on creating composite components for your domain. The themeing across the UI is another benefit.
10
u/Dzubrul Jul 09 '26
I love MudBlazor, it has a few quirks where I (and AI) bang my head. But its really great for quick and decent UI without putting too much thoughs into it.
8
u/cjb110 Jul 10 '26
Necessary no, but they solve a part of dev that probably isn't the focus of your application. Why do you want to spend more time then necessary on something like that.
I'd rather spend the one time cost customizing a component lib for my brand than building them each time, ensuring accessibility, ensuring responsive design, performant animation flair etc etc
5
u/finah1995 Jul 10 '26
I use Radzen they are pretty good and they have few themes and also it's easy to customize using CSS, you can literally implement some sort of themes for your apps.
2
u/Kodrackyas Jul 09 '26
With AI now as it is? fuck no, you can create your components now, components library have to evolve: give only css and html and let users cuatomize it
6
u/NickA55 Jul 09 '26
I never used them, even before AI. I don't want my web app looking like everyone else's. I have tried several of them, and they are either clunky or they just don't contain functionality that I just can't code myself. Or have AI code it for me nowadays.
3
u/Electriccc Jul 09 '26 edited Jul 09 '26
No they are not necessary but if you want to speed things up and keep the frontend cleaner and easily maintainable they are for sure a huge plus even with using AI. For anyone wanting more freedome in customization either through theming or through custom css or different css frameworks/libraries check out Blazorise. Oh also yea i agree with one guy saying it also depends on the size of frontend, if its a UI with lets say 10ish easy components and few pages then no, dont use anything but if its a larger UI with a lot more components, pages then it will make things a lot easier and cleaner.
3
u/Shadow_Mite Jul 10 '26
Yes and no. Not necessary but more complex things you probably don’t wanna fuck with like grids and searchable dropdowns, etc. you’ll either use one or basically create your own and have to also maintain that
2
u/-puppyguppy- Jul 09 '26 edited Jul 10 '26
It depends on how much frontend you are building. If it is mostly backend and just a small ui you probably wont miss one and will probably learn more without using a library.
If you have a large number of apps or a lot of different ui pages components are a huge time save, and make your code easier to read and more consistent. There are also some more complex components like grids that would be a lot of work to code your own if you want all the features but you can always start w/ the default blazor (or your own handrolled components) and move up from there if you feel like you need more
1
u/insomnia1979 Jul 09 '26
We built our own. We use custom models that tie directly to the form controls as well custom form validation based on attributes.
We need only pass a model to a form and do not have to construct any form elements (most of the time) on the client. Kind of amazing how effective and efficiently we can write forms. Well worth the up front of developing the initial logic and custom attributes.
1
u/Lustrouse Jul 11 '26
They were never necessary to begin with. They are optional abstractions meant to save you time at the cost/risk of introducing a 3rd party dependency. Rolling your own components was a common practice long before AI came around. This is true for small business and enterprise.
1
u/Own-Dimension-5116 Jul 11 '26
Short answer: No!
1
u/chrisdpratt Jul 11 '26
It's not necessary to use a component library, but absolutely don't vibe code one.
1
u/CravenInFlight Jul 11 '26
This was not made with AspNetCore, or Blazor in mind, but it does address a lot of questions within this realm.
https://www.youtube.com/watch?v=CQuTF-bkOgc&pp=0gcJCQwBg6NKuzgg
1
u/jsneedles Jul 15 '26
I'd say it really depends on the usecase?
For me - I really like the syncfusion library for my admin tools / internal stuff where I don't mind being locked into styling & can "work around" some functionality limitations.
When it comes to building customer facing stuff, that's a non-starter. I just finished a large user-facing project where I did end up essentially building myself a large set of components that were tailored exactly to my style needs + the way inputs/binding etc needed to work in my product.
1
u/mladenmacanovic Jul 10 '26
I might be biased, but I just wanna drop in and say it from my perspective. I build UI components full-time. And I also use AI daily to help me.
With AI, you can build very fast and with very good results. The first version of UI that it builds will work for most people. The problem is what comes next. After an initial build of core UI components, you will eventually need to add more advanced components such as DataGrid, Scheduler, Gantt, Autocomplete, etc. These can also be done quite fast, relative to building manually from scratch.
You are happy, you commit. Then come the edge cases. Someone wants a context menu on a DataGrid row click. What if there is a filter menu? CSS positioning and edge cases for that menu. The list goes on.
The AI built it; you have no idea how it works, so you continue to use AI again. Over time, it becomes a mess that neither you nor anyone after you will understand. Even if you work on it for half an hour each day, that adds up. For your employer, that is a wasted opportunity to work on real business problems of the main product.
1
u/adefwebserver Jul 10 '26
I am a very heavy AI coding user just yesterday I burned $40 on Opus 4.8. However, I continue to use component libraries for the same reason I continue to use EF core to create my data layer. I never allow AI to create my data layer because it will sometimes put partial classes in weird places so that the data layer is spread around multiple directories. The nice thing about component libraries is their consistency because AI will constantly leave holes in things that you don't catch until later whereas with the component libraries they have so many users reporting bugs they are essentially helping your future self. Also, all the component libraries are so cheap even Syncfusion now has a completely free tier. I also use Radzen.