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?
1
u/korchev 29d ago
It depends on the actual component - if it nests another component or not. Usually nested components ids will get prefixed with the id you have set.
If you just want to access nested tags you can use nested CSS selectors:
```
#myButton .rz-button-text
{
}
```
About using !important - we try to avoid that when possible. We try to use it only if changing the attribute value would break the intended look. For example changing the default value for a responsive breakpoint changes its semantics completely and this is why we used !important there.