Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
41 lines
891 B
JavaScript
41 lines
891 B
JavaScript
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>
|
|
);
|
|
}
|