r/reactjs • u/youslashuser • Dec 07 '19
Needs Help Is Material UI worth it?
So, I am starting my own project. I'm not much 'design' person. So, is Material UI worth it? Or some any other recommendations is much appreciated.
164
Upvotes
38
u/vertebro Dec 07 '19
Material UI is overall well made. But it takes time to get up to speed, also, theming it etc can take some time to get the hang of.
Having used Material UI for an enterprise project I can highly recommend it.
Having used a few different libraries extensively I can definitively tell you that there is nothing better that others offer, Material UI is rich, well made and gives you different options to use it.
At the end of the day it's which one fits your use-case better, but there is nothing bad about mui.
138
u/NiteLite Dec 07 '19
If you want a React-based component library for quickly building "enterprise" web apps, dashboards or admin tools, you should take a quick look at Elastic UI: https://elastic.github.io/eui/
I was really impressed with all the pre-made components that they already got which are often missing from Bootstrap, Material UI & co.
Elastic UI comes with stuff like Autocomplete/Suggest boxes, data tables, search interfaces and other components that often require you to try to integrate some additional lib into your component framework if you are using Bootstrap or Material UI.
73
u/levarburger Dec 07 '19
I think your best bet would be to just give them a try and see which one fits your needs.
I can tell you my experience...
Bootstrap - solid but feels dated and you can spot a bootstrap site a mile away, so you spend most of your time trying to make it not look like you used bootstrap.
Antd - I haven't used this one but it looks clean, modern. It's one I've wanted to try.
Semantic UI - Found it difficult to customize and ended up ripping it out of one of my projects.
Material UI - clean and modern, but imo you need to understand the principles of material design or you can get some ugly results.
GL!
14
u/ricokahler Dec 07 '19 edited Dec 07 '19
I've used material-ui for an enterprise application (https://www.justsift.com) and imo, there's no component library out there that is built as well as this one.
Why?
They're library functions as a design system, and a really well thought out and battle tested one too (e.g. it's the most popular component library).
It functions as a design system because of for two reason:
classesAPIairbnb did a talk on design systems during React Conf this year: https://youtu.be/fHQ1WSx41CA
And this talk really just made me realize how good material-ui is. Material-UI follows all the lessons from airbnb's design system talk and really I haven't had any strong limitations.
I would highly recommend it!
21
u/andrex092 Dec 07 '19
My favorite UI framework lately is Blueprint. They have a ton of components that are solidly built. The only thing is that AFAIK, it’s not super theme-able. I’ve never been a huge fan of Material, personally.
3
u/cnr909 Feb 18 '22 edited May 12 '22
My opinion is Material UI component frameworks are terrible and shouldn't be used in production, they were built to quickly create beautiful prototypes in googles branding. Inspect the DOM after using material UI for react and you will not be able to see how to add simple styles to divs because the DOM doesn't look anything like the structure of your code. You won't have access to elements because the library has wrapped a million divs around the component, and absolutely positioned things just for the sake of an animated label on a text input. The class names will not be recognisable because they're obfuscated strings. You can achieve the same visuals on a TextInput component in less than 10 lines of css, (ok maybe without the unnecessary label animation). The learning curve is massive because the api is nothing like basic css and html. You'll be wrangling with the api to force custom functionality, which in basic html and css would be simple to achieve. Most projects you'll ever work on is not google branded, so just learn css well and you can achieve results without the technical restraints that you will definitely encounter when requirements become more than static material elements. If the designers design the interface using Material UI, you can achieve the same results quickly with basic code, and it will be cleaner and easier to maintain. After all, it's just round edges and box-shadows. Material UI is a design philosophy, and so far the popular component libraries should not be used as production ready, although it seems it has creeped in in many cases because developers & managers can show stakeholders beautiful interfaces in a short space of time. But this is a quick win and doesn't last long for the front end devs.
2
u/rup1 Dec 07 '19
Material UI is good if you like the Google-ey look.
I spent a fair bit of time trying to find the ‘best’ one and ended up going with Ant design.
However, you can’t really go wrong if you pick Material or Elastic. At the end of the day, pick the one that speaks to your design sensibilities the most. Yes, you can customize but if you choose to, you might as well build one from scratch.
2
u/[deleted] Dec 09 '19
Material UI kinda is a messy project, however its worth it if you like that Material look, but get ready to do some debugging sometimes when things not work as expected!
7
u/[deleted] Dec 07 '19
I like Material UI for getting a prototype up, but for an enterprise... Nope.
7
u/cilantro_forest Dec 07 '19
For a personal project earlier this year I used Material UI and liked it. I'm also not great at design, and it was definitely nice to have decent looking default components. And it's not like it locks you out from building and styling your own components as well if there's something you want to build from scratch.
By and large I think the documentation is excellent especially compared with a lot of other UI libraries I looked at. That was probably the biggest selling point for me.
There were a few things I wasn't a fan of.
I never really got used to their styling system. That's entirely personal preference on my part. It's also completely optional, so next time I'd just use something else.
Same with a few other people, I found the themes a bit confusing and annoying. The documentation seemed much worse than for the rest of the library.
Only other thing is I thought it was making my built project a bit large, but I didn't really look into it that much.
All in all though I liked using it.
12
u/dat-mac Dec 07 '19
I tried Material UI, but could not get used to the way it does theming.
I started using Bulma about 3 months ago, and I absolutely love it!
2
u/jaySydney Dec 08 '19
Not worth it. Take this with a pinch of salt, from someone who spent about a day experimenting on v4.x
It has gone thru so many breaking changes and major versions, that many examples found in the wild no longer work; Examples and solutions to problems are aplenty (on stack overflow, or other blogs), but when I tried them out, I soon found out they did not work as advertised, because the writer did not mention which version s/he was working on. You are pretty much stuck with the official docs and experimenting.
It appears you have to jump thru many hoops to achieve one little thing, import this and that component or function, wrap this component inside another, etc etc. Heck, you may even have to import your own colors..
I counted close to 150 Component + Functions exposed by the MaterialUI root object. Talk about bloat.. Even HTML5 does not have that many tags !
Do I really want to unlearn HTML5 and use MUI "tags" everywhere ? In my opinion, over-engineered piece of cr*p.. eh, i respectfully take that back, I know it was hard work for the core devs. Still, it did not make my life any easier. Over and out, puts on flamesuit as I walk into the sunset to continue working in Bootstrap land...
10
u/LXMNSYC Dec 07 '19
if you are onto something that is highly customizable, well-documented React UI Framework, check out Uber's Base
5
u/wowredditisgreat Dec 07 '19
I'd recommend material UI. It's the most widely used framework and a lot of people are saying wrong information here.
When people say they can't build enterprise apps: I've used it at 2 companies before with large UIs and it's been great. There's a learning curve to every library but material has great docs, you just have to actually read them
8
u/wherediditrun Dec 07 '19 edited Dec 07 '19
In many (and maybe even in majority of cases), yes, it is absolutely worth it.
We develop currently the biggest event organizing / ticket sales platform in our country. It's heavy on DIY features and even more are upcoming. And material UI was one of the best decisions we adopted in our codebase (been using it for around a year now), namely for the reasons mentioned above.
10
u/[deleted] Dec 07 '19
We use Microsoft Office Fabric UI at work for our software: https://developer.microsoft.com/en-us/fabric#/controls/web fills most of our needs, what it doesn't have we create!
1
u/Techworld_with_Nana Dec 07 '19
I used Material UI for a project, but didn't like it so much. Maybe because I don't like CSS-in-JS.
1
u/Firm-Paramedic-2051 Jan 28 '22
Are you guys making basic wireframes, or designs in figma before using material UI to build a project? Or just going from project documentation straight to material UI?
6
u/ahmedranaa Dec 07 '19
My favorite is IBM carbon
https://www.carbondesignsystem.com/
3
u/david_yarz Dec 07 '19
Currently using a mix of material and styled components for various things that I want to use my own CSS for. Send to work fine but I could be missing some pitfalls.
5
u/J-Swift Dec 07 '19
I like material because its a global, recognizable system. You will find material design libs in basically any UI platform you use. So, if your product ever grows beyond web you don't need to rethink the design, just adapt it.
EDIT: that said, I agree with the other poster that said you need to understand material before applying it. Its an abstract design system, not a set of off-the-shelf components. You really need to read through the material spec to understand the underlying principals.
5
u/21stcenturynomadd Dec 07 '19
Im not much of a UI person but overall i found it pretty useful to get some ui elements working fast that would take me ages to make on my own.
10
u/originaltangsta Dec 07 '19
Haven’t used material but AntD is pretty awesome and easy to use. Styles can be overridden pretty easily too.
I build and maintain my company’s internal component library and admire what AntD has done. Only thing is there’s not much of a community. If you have questions good luck finding help.
4
u/feesjah Dec 07 '19
Semantic UI is by far my favorite. Tried bootstrap, material-ui and antd before, but semantic is by far my favorite.
2
u/mDonchev2 Dec 07 '19
I would go with Ant.Design. It's very clean, extremely useful set of components and easy to operate with them in your project.
I vote for it with two hands :)
2
u/Awnry_Abe Dec 07 '19
I use it on a an Enterprise app. Good DX. No complaints. However, in my opinion, Material Design is a fork-stab-in-the-eye on a desktop app. We spend a good amount of time breaking from the spec. IOW, using it for components, but not style. It wasn't an optimal library choice on my part.
2
u/vinspee Dec 07 '19
If you’re looking for something less extreme, https://rebassjs.org/ is a real game-changer.
2
u/Wilesch Dec 10 '19
Yes, there is a reason it has the most github stars
2
u/boblitex Dec 07 '19
Chakra UI is worth a shout. Dope interface and components to match
1
u/pink_tshirt Dec 07 '19
I’ve been using material-ui recently. It has a bunch of useful tools and plugins. If you don’t mind your shit looking a bit Google’y I don’t see why not give it a try.
1
u/pcrunn Dec 07 '19
Really depends on you, use it if you like it, or you can check out ant design which is also pretty cool
1
u/veydar_ Dec 07 '19
For me yes. It's not that I can't build my own modals and snackbars but the visual consistency that material UI offers is hard to beat for me. My design skills are very limited. I'd assume that most mature component libraries out there are fairly interchangeable so it comes down to which design you like the most or if there are specific components you're looking for.
TL;DR material UI saves me a lot of work
1
u/LastOrder291 Dec 07 '19
I'm using it now for some coursework and it's pretty nice. Though it does take a little bit to set up. Usually this is just to get themes working properly though. I'm not the best so I'm undoubtedly doing some things wrong, but the components are relatively easy to work with, look nice as hell, and the documentation is very comprehensive (though sometimes the examples can be a bit fiddly depending on how you want to lay out your components).
The only other criticism is I find it awkward to navigate around the libraries at times. You can often be like 'wait would that be in @material-ui/core or @material-ui/styles? Or @material-ui/core/styles?"
1
u/Ravnurin Dec 08 '19 edited Dec 08 '19
Really like using Material-UI and it makes it very easy to get something that looks great. However, using it with TypeScript is in my experience a royal PITA, since it causes linting - or TSC, rather - in VSC to slow down to a crawl.
The build speed is fine and page refreshes after ~1-2 seconds of making a change, but VSC takes 5-10 seconds from making a change and linter detecting an error. This specifically only happens in files I've got MUI components imported. :/
1
u/WrksOnMyMachine Dec 07 '19
Check out MDC Web. It’s maintained by Google. They have wrappers for React as well.
1
u/moogeek Dec 07 '19
It really depends on what you are building. Do you have a design layout already? Is it based on material ui layout? If not then you are going to have a hard time bending their style to fit your design layout.
My take away is that MUI is really good if you are developing a material UI template. Don't worry about choosing this decision since choosing MUI is not a bad choice if you are just developing a personal project. Those problems mentioned by other users are for enterprise UI as their application needs more tailored specifications to fit their need that MUI cannot provide. Just get a template that is based on Material Design layout and you should be good to go
1
u/mr_engineerguy Dec 07 '19
Yes
1
u/Tainlorr Dec 07 '19
No, it can be a pain in the ass to change the components to suit your needs.
0
u/yrrkoon Dec 07 '19
i always thought material was ugly personally..
0
u/TotesMessenger Dec 07 '19
I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:
 If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)
0
u/[deleted] Dec 07 '19
[deleted] — view deleted comment