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
23 lines
611 B
JavaScript
23 lines
611 B
JavaScript
import * as React from 'react';
|
|
import Box from '@mui/material/Box';
|
|
import Snackbar from '@mui/material/Snackbar';
|
|
|
|
export default function PositionedSnackbar() {
|
|
return (
|
|
<Box dir="ltr" sx={{ width: window?.innerWidth, height: '100vh' }}>
|
|
<Snackbar
|
|
key="left"
|
|
anchorOrigin={{ horizontal: 'left', vertical: 'bottom' }}
|
|
message="Snackbar should show left (LTR)"
|
|
open
|
|
/>
|
|
<Snackbar
|
|
key="right"
|
|
anchorOrigin={{ horizontal: 'right', vertical: 'top' }}
|
|
message="Snackbar should show right (LTR)"
|
|
open
|
|
/>
|
|
</Box>
|
|
);
|
|
}
|