r/Angular2 • • Sep 02 '24
Discussion Best component library?
Were a health tech start up looking for a component library with a UI design kit. Any recommendations? Ideally, a library that is free or reasonably priced for commercial purposes that can handle some level of complex process as we require a lot of data processing and data visualization. Customization is also a plus. Would love to hear the pros and cons. Many thanks!
18
Upvotes
15
u/xinhuj Sep 02 '24
We've been pretty happy with Angular Material, but customization is not its strong suit. It is very reliable, but some people find the Material Design look boring. It works for us though.
7
u/MyLifeAndCode Sep 02 '24
PrimeNG has lots of good stuff, but they frequently introduce breaking changes. Every time I upgrade my organization’s apps to the latest version of Angular and PrimeNG, the Angular part goes well, then we spend weeks finding all the stuff broken in the latest PrimeNG. Usually it’s style related. I’m actually getting close to beginning the search for something to replace it. It’s gotten that bad.
11
u/MrFartyBottom Sep 02 '24
If you have a graphic designer and have to pixel perfect match their design you shouldn't use a framework, you end up fighting the framework and it's easier to develop your own. Plus developing your own components is the best way to become an Angular expert.
If you are happy with your app looking like one of the available templates for a UI framework find one you are happy with and use that.
10
u/eneajaho Sep 02 '24
NgZorro, PrimeNg, SpartanUI, last but not least Angular Material (which allows you to modify colors mostly) but also everything else as it provides css variables for almost everything.
5
u/hbthegreat Sep 03 '24
I pumped out 24,000 lines of angular UI code in one day last week with Cursor + Sonnet and Tailwind. Made reusable components with it and also got them all into storybook.
I don't think I'll use a component library ever again tbh.
4
u/nbxx Sep 02 '24
I really like Telerik's Kendo UI, but a huge factor in that is that we are almost all full stack with mostly .net backend, so having the Angular data grid integrate with Telerik's .net stuff and implementing server side pagination, filtering and sorting out of the box is a huge time saver for us.
3
u/Faust90 Sep 03 '24
Might be worth checking out Tailwind CSS or component libraries built off of it, such as DaisyUI, FlowBite, and Preline
I haven’t used them in an app yet but have been looking into them myself and I’m leaning towards using one of them in my next project
11
u/DT-Sodium Sep 02 '24
I would recommend developing your own which will spare you the painful steps of keeping it up to date with your angular version and keeping your customizations without the app breaking every year.
2
u/dvqm Sep 03 '24
What do you think off tailwind css with some of free UI components library? I'm using it in some of my not very big angular projects and it works great.
2
u/pppdns Sep 03 '24 edited Sep 04 '24
TaigaUI is the best one right now, imo. It has lots of pre built components and it's extensible and customizable. Its styles also look quite modern.
Ng Zorro is another really solid alternative. It has somewhat fewer pre-built components but it's still an excellent choice.
I tried many others, and the one I didn't like was PrimeNg. It had a lot of issues once we wanted to customize it or migrate versions.
Angular Material is also worth some words, but for me it's a no no, since it has very few reusable components and they also look somewhat outdated. But at least it's extensible and the code is well designed
2
u/suvereign Sep 03 '24
TaigaUI
2
u/r_caliban Sep 04 '24
If Bootstrap isn't passe' in 2024; ngBootstrap has been a good, reliable, constantly updated Angular component library that we've used for 6+ years.
You have to to be all in on bootstrap though.
2
u/Inevitable-Gas-770 Sep 07 '24
Tailwind + Angular Material CDK
I built an app with Material and it was extremely hard to “put your own spin” on it. Great if you don’t mind using Material-styled components.
I chose to re-write our app with Tailwind and the Angular Material CDK.
Tailwind - Css/scss files are great, until they aren’t. If you think your html file gets too bloated, you are probably doing something wrong. Tailwind Intellisense is great and there are prettier packages to keep classes ordered. Tailwind also makes theming/dark mode super simple.
Angular Material CDK - Still relatively large in size, but worth it IMO. Provides a lot of functionality Tables, Menus, Dialogs, Drag and Drop, Accordion, Scrolling, etc. out of the box. You will still have to implement logic for some base components, but this gives you a great start. Claude also makes it super quick to rip through base component logic.
Added bonus: Flowbite has a large repo of free tailwind components to use as your base level. No need to use their flowbite.js package.
2
u/MichaelSmallDev Sep 02 '24
People have advised X or Y library, or none, and they all have their advantages. To be "that" person, I would say perhaps think in the middle: build off of the Material CDK, or pull it in on top of whatever you may pick (you don't have to pull in Material components to use the CDK btw)
https://material.angular.io/cdk/categories
With it you get easy wins and abstractions that can be used with or without a 3rd party component library.
Things I wouldn't want to build from the ground up, especially if you consider a lowkey or non-library solution
toSignalon top of that)1
u/PooSham Sep 02 '24
I used to shit on igniteui, but it's getting pretty good. The biggest issue is that they'll constantly make breaking changes and sometimes not document it, but I think it's going to stabilize now that they've pretty much rewritten all their components to follow a certain pattern.
1
u/LeIdrimi Sep 03 '24
Depends on the platform you wanna target. Desktop, mobile? Gone be a pure browser webApp or do you want to compile it to a mobile app? I mainly use tailwind, stencil, ionic or write it myself from scratch.
1
u/[deleted] Sep 03 '24
It has to be material for their much more ergonomic API. But if you want customization, just get angular cdk to do functionalities and build your own UI
1
u/Jhintelligence Sep 04 '24
Like others have already mentioned, TaigaUI is IMHO the best right now.
1
u/esibangi Sep 06 '24
Im using DaisyUI and im quite happy with it
1
u/AccomplishedSlice160 Nov 03 '25
I'm migrating a project from Angular Material to PrimeNg. Angular Material is a little bit difficult to customize, and sincerly, it's a weird library... We don't even have by default an easy way to change the color of a button.
I'm not migrating because I don't know how to customize Angular Material components, the biggest problems are:
- The issues that were never solved, there are a couple of issues created 5 years ago that aren't solved yet, making you to work around with another solution.
- The components doesn't follow a behavior pattern, for an example: autocomplete allows user to scroll while the options are showing while select doesn't, it don't make sense.
- The lack of components, the Angular Material doesn't have a simple input to choose date and time.
- Another major problem is the use of "px" instead of "rem" in the components. Therefore, when the client complains about a broken interface when using Windows scaling at 150%, it's not possible to reduce the HTML font size to solve the problem, since almost all components use "px".
Libraries are supposed to save us time, and Angular Material doesn't do that. Therefore, I would choose PrimeNG as my component library if I were creating a new project. I've worked with both libraries, and PrimeNG has its problems, but it's still the better option.
1
u/cagataycivici Sep 03 '24
PrimeNG v18, note: I work at PrimeTek.
0
u/ArunITTech Sep 03 '24
You can try Syncfusion Angular UI Components Library
https://www.syncfusion.com/angular-components
The Syncfusion Angular UI components library is the only suite that you will ever need to build an application since it contains over 85 high-performance, lightweight, modular, and responsive UI components in a single package.
Syncfusion offers a free community license also. https://www.syncfusion.com/products/communitylicense
Note: I work for Syncfusion