How can I style a React component that does not use Material UI elements with Material UIs style system? - reactjs

Material UIs (MUI's) documentation is perfectly broken here: At
https://mui.com/system/getting-started/overview/#all-inclusive
the last line reads:
"See ->Advanced for details on how to use MUI System with non-MUI components."
Yet the link to Advanced is dead as of today (404). Is there a way to use the style system outside of MUIs components?

I think that's the Custom Components page, it was fixed here but not live yet I guess

Related

Does MUI v5 provides example of theme or styles that they are using for their home page?

MUI team have very attractive example in their homepage
And I want to know does they provide some of examples what styling or theme that they are using? Do they have some codesandbox something? I tried a lot of example but always show default material style!
MUI is an open source project, including its docs website. You can see the project on Github here. The components in the landing page are customized in this file.
You can access the MUI theme object directly in the mui.com console

how to style such component in material UI in reactjs

I am trying to make such kind of setup using material UI but am unable to do it properly using material UI.
I am not able to add the product add and remove setup below which should be below product name and price as shown in image.
If it is vital to use material-ui for positioning your elements and it expected to be responsive for different screen resolutions you could use https://material-ui.com/components/grid/
Otherwise, you can just use flexbox https://css-tricks.com/snippets/css/a-guide-to-flexbox/
There is a link to codesandbox for expamle made via MU Grids https://codesandbox.io/embed/material-demo-dvhfy?fontsize=14&hidenavigation=1&theme=dark

Create nested menu using material-ui 4.9

I am trying to use #material-ui/core library in my application and want to create a nested menu. I can see that material specification talks about a nested menu but material-ui does not have a built in support for the same. I tried using Menu and MenuItems. Also went through the documentation, but did not find the way to create such nested menu. Basically ManuItem is not allowing me to add children inside it. Can someone help me for the same?
sandbox: https://codesandbox.io/s/material-ui-nested-menu-problem-ibxoh
This functionality is not supported by material-ui officially yet. However, there is a package about it called material-ui-nested-menu-item, you can check how it works here:
https://codesandbox.io/s/material-ui-nested-menu-item-example-b25j6
Here is a package for MUI version 5.
Material UI Nested Menu Item v5 on NPM
Material UI Nested Menu Item v5 Demo

How to use animated material ui icons in React

https://material.io/design/iconography/animated-icons.html
I attached link above how can i integrated icon in my react application there is not have any code.
I think it is not supported out of the box by material-ui, but you can use css transitions to accomplish it.
Maybe this lib can solve it for you or at least inspire your implementation?
https://mui.wertarbyte.com/#material-ui-toggle-icon
Their implementation looks pretty nice, well documented and MIT: https://github.com/TeamWertarbyte/material-ui-toggle-icon
Google Material does not provide an implementation of their icons with animations. They do; however, provide a specification/guideline for animation with Material Icons.
In addition; you can download the SVG Icons here as needed: https://material.io/tools/icons/
and import into your code.

How to make a material-ui responsive to reactjs?

Tell me which tool to use based on material for design with react components?
Try http://www.material-ui.com - for reactjs, but there is no responsive grid
Try https://github.com/react-materialize/react-materialize - This lib is not reliable and difficult for stability working of the application
material-ui already uses flexbox for their layouts. The components themselves are responsive as well. It seems that they did implement a grid layout. However, it looks like it's only available in the pre-release branch. The way I see it you have three options here:
Implement your own responsive grid using flexbox
Use a grid layout library, such as react-grid-layout(for React) or flexboxgrid
Get their pre-release channel npm install material-ui#next

Resources