I believe these two props both use emotion under the hood and they seem to do much the same thing. I've been using the css prop because I prefer template tags and real css vs. javascript style names for css properties. Is there any reason to prefer one over the other given that they are basically interchangeable in terms of functionality?
Asked
Active
Viewed 5,422 times
1 Answers
6
I read the page about the new MUI styles system here: https://next.material-ui.com/system/basics/
And it feels to me that the main difference is the following:
The
css
prop lets you write something that looks like classic css, as you would do in actual CSS, or Less/Sass, or styled-componentsThe
sx
prop gives access to the 'system' which is a set of utilities to quickly access props with shortcuts, as well as theme properties, which already existed beforev5
, but are now even easier to use.... after some learning curve...
The above documentation page gives a lot of examples.

Pandaiolo
- 11,165
- 5
- 38
- 70