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
28 lines
628 B
TypeScript
28 lines
628 B
TypeScript
import Button from '@mui/joy/Button';
|
|
import ButtonGroup from '@mui/joy/ButtonGroup';
|
|
import IconButton from '@mui/joy/IconButton';
|
|
import Settings from '@mui/icons-material/Settings';
|
|
|
|
export default function FlexButtonGroup() {
|
|
return (
|
|
<ButtonGroup
|
|
buttonFlex={1}
|
|
aria-label="flex button group"
|
|
sx={{
|
|
p: 2,
|
|
width: 500,
|
|
maxWidth: '100%',
|
|
overflow: 'auto',
|
|
resize: 'horizontal',
|
|
}}
|
|
>
|
|
<Button>One</Button>
|
|
<Button>Two</Button>
|
|
<Button>Three</Button>
|
|
<IconButton>
|
|
<Settings />
|
|
</IconButton>
|
|
</ButtonGroup>
|
|
);
|
|
}
|