41 lines
891 B
TypeScript
41 lines
891 B
TypeScript
|
|
import Button from '@mui/material/Button';
|
||
|
|
import ButtonGroup from '@mui/material/ButtonGroup';
|
||
|
|
import Box from '@mui/material/Box';
|
||
|
|
|
||
|
|
const buttons = [
|
||
|
|
<Button key="one">One</Button>,
|
||
|
|
<Button key="two">Two</Button>,
|
||
|
|
<Button key="three">Three</Button>,
|
||
|
|
];
|
||
|
|
|
||
|
|
export default function GroupOrientation() {
|
||
|
|
return (
|
||
|
|
<Box
|
||
|
|
sx={{
|
||
|
|
display: 'flex',
|
||
|
|
'& > *': {
|
||
|
|
m: 1,
|
||
|
|
},
|
||
|
|
}}
|
||
|
|
>
|
||
|
|
<ButtonGroup orientation="vertical" aria-label="Vertical button group">
|
||
|
|
{buttons}
|
||
|
|
</ButtonGroup>
|
||
|
|
<ButtonGroup
|
||
|
|
orientation="vertical"
|
||
|
|
aria-label="Vertical button group"
|
||
|
|
variant="contained"
|
||
|
|
>
|
||
|
|
{buttons}
|
||
|
|
</ButtonGroup>
|
||
|
|
<ButtonGroup
|
||
|
|
orientation="vertical"
|
||
|
|
aria-label="Vertical button group"
|
||
|
|
variant="text"
|
||
|
|
>
|
||
|
|
{buttons}
|
||
|
|
</ButtonGroup>
|
||
|
|
</Box>
|
||
|
|
);
|
||
|
|
}
|