Is there some way to use the styled utility from mui to place 2 divs side by side?
None of the examples in the documentation cover this particular use case.
The answers here and here address this, but not within the context of mui / material ui.
I tried the following, but the Box elements end up on separate lines:
import React from 'react';
import Box from "@mui/material/Box";
import { styled } from "@mui/material/styles";
import { Container } from "@mui/material";
const Wrapper = styled(Box)({
display: "grid",
});
const App = (props) => {
return (
<Container>
<Wrapper>
<Box>text here</Box>
<Box>more text</Box>
</Wrapper>
</Container>
)
}
export default App
How can I modify the above code to get both lines of text on the same line?