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
30 lines
738 B
TypeScript
30 lines
738 B
TypeScript
import Button from '@mui/material/Button';
|
|
import ButtonGroup from '@mui/material/ButtonGroup';
|
|
import Box from '@mui/material/Box';
|
|
|
|
export default function VariantButtonGroup() {
|
|
return (
|
|
<Box
|
|
sx={{
|
|
display: 'flex',
|
|
flexDirection: 'column',
|
|
alignItems: 'center',
|
|
'& > *': {
|
|
m: 1,
|
|
},
|
|
}}
|
|
>
|
|
<ButtonGroup variant="outlined" aria-label="Basic button group">
|
|
<Button>One</Button>
|
|
<Button>Two</Button>
|
|
<Button>Three</Button>
|
|
</ButtonGroup>
|
|
<ButtonGroup variant="text" aria-label="Basic button group">
|
|
<Button>One</Button>
|
|
<Button>Two</Button>
|
|
<Button>Three</Button>
|
|
</ButtonGroup>
|
|
</Box>
|
|
);
|
|
}
|