I managed to center the button with the text "Hello There", but I'm having an issue where some lines are visible on the button. I could easily fix this by adding a white background-color, but I'm wondering if there is a more optimal way to achieve this without using position: absolute. Any suggestions for better coding practices?
<Stack
alignItems={"center"}
sx={{
marginTop: 2,
position: "absolute",
display: "flex",
left: 0,
right: 0
}}
>
<Button variant="outlined">Hello There</Button>
</Stack>