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
70 lines
2.1 KiB
JavaScript
70 lines
2.1 KiB
JavaScript
import Box from '@mui/material/Box';
|
|
import Grid from '@mui/material/Grid';
|
|
import Button from '@mui/material/Button';
|
|
import Tooltip from '@mui/material/Tooltip';
|
|
|
|
export default function PositionedTooltips() {
|
|
return (
|
|
<Box sx={{ width: 500 }}>
|
|
<Grid container sx={{ justifyContent: 'center' }}>
|
|
<Grid>
|
|
<Tooltip title="Add" placement="top-start">
|
|
<Button>top-start</Button>
|
|
</Tooltip>
|
|
<Tooltip title="Add" placement="top">
|
|
<Button>top</Button>
|
|
</Tooltip>
|
|
<Tooltip title="Add" placement="top-end">
|
|
<Button>top-end</Button>
|
|
</Tooltip>
|
|
</Grid>
|
|
</Grid>
|
|
<Grid container sx={{ justifyContent: 'center' }}>
|
|
<Grid size={6}>
|
|
<Tooltip title="Add" placement="left-start">
|
|
<Button>left-start</Button>
|
|
</Tooltip>
|
|
<br />
|
|
<Tooltip title="Add" placement="left">
|
|
<Button>left</Button>
|
|
</Tooltip>
|
|
<br />
|
|
<Tooltip title="Add" placement="left-end">
|
|
<Button>left-end</Button>
|
|
</Tooltip>
|
|
</Grid>
|
|
<Grid container direction="column" sx={{ alignItems: 'flex-end' }} size={6}>
|
|
<Grid>
|
|
<Tooltip title="Add" placement="right-start">
|
|
<Button>right-start</Button>
|
|
</Tooltip>
|
|
</Grid>
|
|
<Grid>
|
|
<Tooltip title="Add" placement="right">
|
|
<Button>right</Button>
|
|
</Tooltip>
|
|
</Grid>
|
|
<Grid>
|
|
<Tooltip title="Add" placement="right-end">
|
|
<Button>right-end</Button>
|
|
</Tooltip>
|
|
</Grid>
|
|
</Grid>
|
|
</Grid>
|
|
<Grid container sx={{ justifyContent: 'center' }}>
|
|
<Grid>
|
|
<Tooltip title="Add" placement="bottom-start">
|
|
<Button>bottom-start</Button>
|
|
</Tooltip>
|
|
<Tooltip title="Add" placement="bottom">
|
|
<Button>bottom</Button>
|
|
</Tooltip>
|
|
<Tooltip title="Add" placement="bottom-end">
|
|
<Button>bottom-end</Button>
|
|
</Tooltip>
|
|
</Grid>
|
|
</Grid>
|
|
</Box>
|
|
);
|
|
}
|