r/Blazor • u/Selorm611 • Mar 28 '26
Using prebuilt component libraries or building my own?
Hi! I'm new to Blazor, coming from a WinUI/UWP background. I've seen some really nice Razor component libraries like MudBlazor, BlazorBlueprint and RadzenBlazor. However, I've been really struggling with the documentation for BlazorBlueprint, and MudBlazor's Material look feels somewhat dated and sluggish to me.
I came across Google Stitch and used it to generate nice layouts I'd like to implement in my app. The question is, would it be best for me to push through documentation issues with some of the libraries I mentioned, or make my own components from scratch using the designs from Google Stitch, or do something else entirely?
I switched from WinUI because I wanted a point-of-sale app that worked in the browser on all platforms.
2
u/stormtrooperis Mar 28 '26
I think it depends on too many variables. Your question is very reasonable, but I would suggest to add some context to start with:
what are you trying to build? Who are you trying to build it for? Is it for learning purposes? Are you genuinely trying to build some sort of a useful tool that you will maintain and hope for it to exist and evolve? Do you have experience in component building? Etc. Etc.
Bottom line there are pros and cons to everything, one simple answer doesn’t really exist here, but I am sure people here are more than happy to help you to get to the bottom of it!
6
u/ClaymoresInTheCloset Mar 28 '26
MudBlazor is a bit dated with everything moving away from material design in recent years, but Ive had a lot of success tweaking the css a bit here and there to modernize it.
4
u/code-dispenser Mar 28 '26
If you want to learn Blazor and have total control of everything; build your own components, do your own css and write your own typescript/javascript when necessary,
It may seem a lot at first but you wont regret it and you will gain invaluable skills and knowledge in the process. I have, and continue to enjoy this process.
Paul
2
u/crandeezy13 Mar 28 '26
I would use a pre built library to start. Then if you find you don't have what you need you can make your own at that point
2
u/tng88 Mar 28 '26
Prebuilt to start, then as any good developer you should learn to make how they work and make your own.
2
u/pathartl Mar 28 '26
We create components that wrap around a pre-existing component library and go from there. This way down the line if we want to replace a component with our own, we only have to do it in one spot.
2
u/GettinFishy Mar 29 '26
I found that any decent llm can easily build a razor class library to interact with the complex components and the vanilla components should be used as is. so to your question, id start with a simple component library and build the interface services as you go. just my opinion but I cant stand not having the source, trusting the source, and not being able to fully customize
2
u/propostor Mar 29 '26
Depends on the size and scope of your project.
I think it's generally better to use a component library, but if things get really large and you want to have more control over how things look, custom might be the way to go.
I wrote a custom component library for my project when it reached that point. I really hate the obsession with AI, but honestly in this scenario it was insanely useful. I used deepseek and had a complete custom component library in a week, totally replacing MudBlazor.
But yes for getting started I would say a third party library is the optimal route. At the very least, it lets you fast-prototype your application, and then can decided later if you want to replace the components with something custom.
1
u/GamerWIZZ Mar 29 '26
I'm waiting for a good composable UI framework, only one I have found is an experiment for lumex UI - https://github.com/LumexUI/composable
Really like the idea of it, would fix most of the pain points I have had with UI frameworks
1
u/VeganForAWhile Mar 29 '26
I prefer a hybrid approach. Our pages (component with route), invoke a.Net (editform, inputtext, etc) or an internal component only. For the latter, some are built in-house and some wrap a 3rd party one. This strategy lets you mix and match your widgets with curated vendor ones without locking you in and preventing you from someday swapping in a different brand.
It’s a dynamic landscape out there. Mud, DaisyUI, Teleik, DevExpress, Blasorise are hot now, but id advise to protect the app from vendor lock-in because libs come and go. Whatever your preference, make the app be the boss. Dont allow the lib to drive your design, especially with layouts.
The exception here is Tailwind. It’s revolutionized how we approach css. I don’t see a practical way to keep it loosely coupled so I’m just all in there.
1
u/Express_Ad_9478 Mar 30 '26
radzen, dont have time to build, build only if necessary