SIGN IN SIGN UP
mui / material-ui UNCLAIMED

Material UI: Comprehensive React component library that implements Google's Material Design. Free forever.

98022 0 0 JavaScript
2021-09-01 10:27:09 +02:00
import Paper from '@mui/material/Paper';
import Stack from '@mui/material/Stack';
import { styled } from '@mui/material/styles';
2021-03-19 04:19:52 -07:00
const Item = styled(Paper)(({ theme }) => ({
backgroundColor: '#fff',
...theme.typography.body2,
padding: theme.spacing(1),
textAlign: 'center',
color: (theme.vars ?? theme).palette.text.secondary,
...theme.applyStyles('dark', {
backgroundColor: '#1A2027',
}),
}));
2021-03-19 04:19:52 -07:00
export default function DirectionStack() {
return (
2021-03-20 14:19:02 -03:00
<div>
<Stack direction="row" spacing={2}>
<Item>Item 1</Item>
<Item>Item 2</Item>
<Item>Item 3</Item>
2021-03-20 14:19:02 -03:00
</Stack>
</div>
2021-03-19 04:19:52 -07:00
);
}