Implemented position sticky with a width set to 100% to ensure it remains fixed at the bottom, using bottom: 0.
export default function GuestFooter() {
return (
<Paper sx={{marginTop: 'calc(10% + 60px)',
width: '100%',
position: 'fixed',
bottom: 0,
width: '100%'
}} component="footer" square variant="outlined">
<Container maxWidth="lg">
<Box
sx={{
flexGrow: 1,
justifyContent: "center",
display: "flex",
my:1
}}
>
<div>
<Image priority src="/Logo.svg" width={75} height={30} alt="Logo" />
</div>
</Box>
<Box
sx={{
flexGrow: 1,
justifyContent: "center",
display: "flex",
mb: 2,
}}
>
<Typography variant="caption" color="initial">
Copyright ©2022. [] Limited
</Typography>
</Box>
</Container>
</Paper>
);
}
Modifications made on the MUI 'Paper' component, enclosing the entire JSX structure:
position: 'sticky',
bottom: 0
width: '100%',
Latest Outcome:
<Paper sx={{marginTop: 'calc(10% + 60px)',
position: 'fixed',
bottom: 0,
width: '100%'
}} component="footer" square variant="outlined">