xxxxxxxxxx
import React from 'react';
import { Icon } from '@material-ui/core';
function App() {
return (
<div>
{/* Example of a Mui icon */}
<Icon
style={{ fontSize: '20px' }} // Adjust the fontSize to resize the icon
>
favorite
</Icon>
</div>
);
}
export default App;
xxxxxxxxxx
import React from "react";
import Icon from "@material-ui/core/Icon";
const MyComponent = () => {
return (
<div>
<Icon style={{ fontSize: 40 }}>star</Icon>
{/* The "star" icon with a font size of 40 pixels */}
</div>
);
};