I’ve attempted the following so far:
import "./styles.css";
import { Box, Typography } from "@mui/material";
import styled from "@emotion/styled";
export default function App() {
const MainStyle = styled("div")(({ theme }) => ({
position: "fixed",
zIndex: 99999,
right: 0,
bottom: 0
}));
return (
<MainStyle>
<Box sx={{ transform: "rotate(-90deg)", backgroundColor: "blue" }}>
<Typography sx={{ color: "white" }}>CHAT WITH US!</Typography>
</Box>
</MainStyle>
);
}
The issue I’m facing is that half of the box extends off the screen and doesn’t align all the way to the right.https://i.stack.imgur.com/aolXr.png
My objective is to have it positioned in the right corner with the entire box visible, similar to how displays their "chat with us, we are online" prompt, but specifically on the right side.