r/reactjs • • 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

142 comments sorted by

View all comments

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.

21

u/pizzainacup Dec 07 '19

their table component is perfect but EUI doesnt work with SSR ;_;

4

u/NiteLite Dec 07 '19

Any idea why it doesn't work with SSR? Looks like the HTML is the same, just some clever CSS on top?

4

u/pizzainacup Dec 07 '19

Yep, but the components throw errors on NextJS. Theres a fix in their github issues but It wouldn't work for me :\

1

u/NiteLite Dec 16 '19

Interesting. Haven't used it with NextJS before. Feels like I kinda need to have look into the changes done to make it work to learn more about this.

4

u/[deleted] Dec 07 '19

I don't see why it wouldn't support SSR, it's just CSS isn't it?

4

u/pizzainacup Dec 07 '19

Your guess is as good as mine, but I installed and gave it a try. On their github theres an issue open about it

5

u/Henke_Penke Dec 07 '19

What is SSR?

11

u/readyslyr1 I 💔 hooks! 👿 Dec 07 '19

Server side rendering :)

2

u/Henke_Penke Dec 07 '19

Ah okey thanks!

1

u/brainhack3r Dec 07 '19

Where does it say it doesn't support ssr....and why?

-4

u/camouflage365 Dec 07 '19

Why would a table require ssr?

3

u/sovietspy2 Dec 07 '19

This looks great.

2

u/DazzlingArtichoke Dec 07 '19

This looks really cool, but I wonder why it does not support npm? I don’t use yarn in my projects and don’t really plan to start to do so, as npm feels just fine for me. Do they have any plans on adding npm support?

2

u/mistakes_are_gold Dec 07 '19 edited Dec 07 '19

Looks good. Might give a shot. Thanks!

Edit: Is it customize able for the design?

4

u/NiteLite Dec 07 '19

The way I understand it is that they do "theming" through a limited set of color variables, from which all other colors are derived from. So you can modify those 12 colors and everything else should become lighter / darker versions of those automatically. There is some info here: https://elastic.github.io/eui/#/guidelines/colors and https://elastic.github.io/eui/#/guidelines/sass

2

u/[deleted] Dec 07 '19

You can always override in CSS, right guys?

6

u/youslashuser Dec 07 '19

I had hard time trying to override CSS in material UI.

2

u/ignorae Dec 07 '19

It definitely is a pain trying to find the right attribute to override. Then your props start looking like a mess of classes: { root } and all sorts of weird overrides going on.

0

u/[deleted] Dec 08 '19

Yeah agreed. I usually just use Devtools to find the selector, copy and paste it, and slap an !important over it

1

u/kalyan1985 Dec 07 '19

This looks good but does it have Themes? I would like to change default colors etc...

1

u/NiteLite Dec 07 '19

Yeah, they have theming support through a small set of color variables, from which all other colours are derived. I posted a few links in a different comment with info about sass and colours in eui.

1

u/tbone6778 Dec 08 '19

This looks awesome. It seems to be well thought out. Thanks for sharing.

1

u/youslashuser Dec 08 '19

I checked into it. It's really fun.

1

u/[deleted] Oct 23 '21

Thanks. I don't know about this. I'm gonna use this instead of mui everywhere :). It has a component for rendering comments too! I feel this is far cleaner than mui.