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
29 lines
905 B
TypeScript
29 lines
905 B
TypeScript
import Box from '@mui/material/Box';
|
|
import Stack from '@mui/material/Stack';
|
|
import Badge from '@mui/material/Badge';
|
|
|
|
const shapeStyles = { bgcolor: 'primary.main', width: 40, height: 40 };
|
|
const shapeCircleStyles = { borderRadius: '50%' };
|
|
const rectangle = <Box component="span" sx={shapeStyles} />;
|
|
const circle = (
|
|
<Box component="span" sx={{ ...shapeStyles, ...shapeCircleStyles }} />
|
|
);
|
|
export default function BadgeOverlap() {
|
|
return (
|
|
<Stack spacing={3} direction="row">
|
|
<Badge color="secondary" badgeContent=" ">
|
|
{rectangle}
|
|
</Badge>
|
|
<Badge color="secondary" badgeContent=" " variant="dot">
|
|
{rectangle}
|
|
</Badge>
|
|
<Badge color="secondary" overlap="circular" badgeContent=" ">
|
|
{circle}
|
|
</Badge>
|
|
<Badge color="secondary" overlap="circular" badgeContent=" " variant="dot">
|
|
{circle}
|
|
</Badge>
|
|
</Stack>
|
|
);
|
|
}
|