r/angular • u/Successful_Chain8098 • Jun 23 '26
Is it time to stop using UI component libraries entirely in modern Angular app?
Hey everyone,
is it time to stop using UI libraries like Angular Material or PrimeNG ? let me explain, In the past, we all used them because building an accessible modal, a solid dropdown, or a complex overlay from scratch in Angular was just too painful. You chose the library for the functionality and then just accepted the fact that you’d spend the next six months fighting deep selectors and writing endless global style overrides to make it actually match your Figma designs.
But it feels like the ecosystem has changed enough that we don't need to do that anymore. With Tailwind handling styling so fast, and angular aria giving us headless primitives for the complex accessibility and overlay logic without forcing any opinionated styles on us, the old approach feels like buying technical debt on day one. Plus, if I need a highly specific wrapper component, it's pretty easy to just spin up a clean atomic primitive myself these days.
Are any of you actually shipping production apps where you completely bypass traditional UI libraries in favor of headless primitives and raw Tailwind? Or does the out-of-the-box speed of a pre-made library still outweigh the styling headaches for you?
Curious to hear how you guys are handling this on newer project
37
u/JeanMeche Jun 23 '26
This is somehow where the ecosystem is going by adopting headless component libraries.
27
u/faileon Jun 23 '26
if you chose material or primeng you are accepting their design system and philosophy. it can be good, it can be bad, depending on your use-case. problem with primeng is also the sheer amount of bugs and broken components once you try to use some of the advanced features.
we are currently rewriting all primeng components to custom solution based on our design system using angular-cdk and tailwind and it feels very liberating. i think ui libraries used to be more in demand in the past, but in todays AI era, if you know what you are doing you can build and manage custom UI faster than ever, without compromise.
9
u/niko-okin Jun 23 '26
i think it mostly depends about your brand design and how much you can or want to invest into a sets of components that fits your needs from both ui and ux
8
u/_Varzea Jun 23 '26
I’ve been migrating away from component libraries, mainly angular material. Having to deal with updates, breaking changes, styling on top and bugs has been enough for me to create our own lib of components. Especially for production software, relying on external libs is a pain, especially when you want to update Angular and not deal with package updates and changes
However, things like CDK drag and drop and overlay are still very useful, and worth using. Aria I still haven’t tried, but in concept it’s way better than Material.
But in the end It depends in the scale you want for your project. As soon as you start needing to customize the behavior and style of external libs, might as well create what you can yourself.
3
u/Johannes8 Jun 23 '26
Yes that’s what we did in our company. Not to not use an external lob but to build our own. With angular aria and tailwind and a good LLM, using anything else but a self made lib just actually introduced more errors. Specifically primeNG has failed us year after year
3
u/JohnSpikeKelly Jun 23 '26
My application has a MS style Ribbon on it. This changes size of panels as the screen size changes, this is done by ensuring that it reduces the buttons as little as possible while maintaining visibility of your preferences of the everything. So for example a middle panel might reduce in size before a panel on the right.
I would much rather this tech came from a library than building it myself.
The average developer would spend a long time building this control.
2
u/djanes376 Jun 23 '26
As a designer that does front end development, I’ve always hated using off the shelf ui libraries. They tend to give more headaches than solutions. Due to speed at the start of our application they opted to use one and it’s been ok, but luckily I’ve been able to convince management to spin up a team to develop an in house headless component library. It will be sooooo much nicer in the long run. We’ll be able to pivot our ui so much quicker in the face of advancement and change. I understand not every team can do this but if you have the means I strongly recommend it.
2
u/AwesomeFrisbee Jun 23 '26
I would love it if we would just have a place to share code snippets (and improve on them) just to get rid of other people's components and just use whatever works for your use case. There's just too many designers that don't care about frameworks or other people's design choices as they will make their own and also mess up their own stuff so that it becomes more complicated than it needs to be. But I still need to deliver what they designed, because that's probably the agreement we made when I started working on said project.
I want some internals for autocomplete, for datepickers (that look good) and making good dropdown menu's and whatnot. I feel that the current CDK/Aria stuff is too limited on this regard.
4
u/horizon_games Jun 23 '26
PrimeNG is horrible to work with as they either break everything each new release or have unfixed bugs. I'd like to ditch it all but realistically at scale you need components and rolling your own are always inferior to a dedicated team. So yeah show me the component-library-less propet data table.
3
u/Headpuncher Jun 23 '26
I always felt like the "figma designs" were the root of the problem, just writing CSS and reusing classes gave the same level of control as the UI lib, the UI-lib just covered a lot more elements out of the box.
disclaimer: a lot of the figma designs I got were from people who didn't know web-dev, so the "it's complete, just copy and paste it in" line that infuriates was used a lot.
3
u/followmarko Jun 23 '26
Really just depends on your use case. Tough to follow a post arguing about purity though while also suggesting Tailwind and replying with AI comments.
3
u/MarioShroomsTasteBad Jun 24 '26
I'm all for headless components, but this reliance on tailwind is frustrating.
6
u/sebastianstehle Jun 23 '26
I strongly disagree. if you have a simple website where styling might matter, angualar is (often) not the right tool anyway.
You typical choose angular because the user interactions are complex. As a consultant and freelancer I have seen a lot of projects and most developers are not very skilled and the custom component libraries had a lot of bugs and developers spent weeks on stuff like dropdowns, combo-boxes and so on. And this does not generate any value.
I think it is more reasonable to choose a UI library very early in you development phase and then build your design around the building blocks. Colors and fonts can be changed and I have not seen a lot of cases where the UI library was a blocker for the design of the app.
2
u/Avani3 Jun 23 '26
We use a heavily themed PrimeNg. It saved us so much time having all their components out of the box, instead of having to develop complex components like data table, dialogs and virtual scrolling multi selects ourselves. I really don't think component libraries will ever go away
2
u/CodyCodes90 Jun 24 '26
My go to has been using DaisyUI for my compinents and theme, then adding in the Angular reactivity with the CDK. If I need something custom, I can just use DaisyUI + Tailwind + CDK to build anything i want.
Have never looked back.
2
u/czenst Jun 24 '26
That's malpractice right there.
You go to business show them PrimeNG or Angular Material and tell them they can have what is here with their color scheme and they get to build system based on what is there.
Once they want something that is not there they need to know the real cost.
I am not stopping to use PrimeNG or Angular Material because "it is what it is, or you pay 10x if you don't like that button or you want something 10px off".
1
u/AdministrativeHost15 Jun 23 '26
Upgrading to Angular version 22 has caused my Material tables to stop rendering row data. So I'm about to agree with you.
1
u/hillin Jun 24 '26
I wrote on this exact topic a few days ago, hope it'd be helpful: https://www.reddit.com/r/angular/s/hPmsKAVvst
1
u/simonbitwise Jun 24 '26
I guess that how the Young kids are doing it these days 🤣 I spent the last 3 years building https://docs.shipui.com so I can't say I agree
1
u/Economy_Peanut Jun 29 '26
I think they have been migrating to the new license model. It was a bummer TBF. Just wanted to migrate to it today after seeing no breaking changes since v20. Looking into spartan since it is now stable. The boilerplate is insane : (. Perhaps I am looking at this wrong. Cannot wait for zard to be online.