Seeking assistance with React/MUI as a newcomer.
I am utilizing a Stack of TextFields
, which are resizing effectively based on screen width.
<Stack
direction="row"
sx={{
margin: "16px"
}}
>
<Stack sx={{ flexGrow: 1 }}>
<Box sx={{ flexWrap: "wrap" }}>
<TextField sx={{ width: "180px" }} />
<TextField sx={{ width: "180px" }} />
<TextField sx={{ width: "180px" }} />
<TextField sx={{ width: "180px" }} />
<TextField sx={{ width: "180px" }} />
<TextField sx={{ width: "180px" }} />
<TextField sx={{ width: "180px" }} />
<TextField sx={{ width: "180px" }} />
<TextField sx={{ width: "180px" }} />
<TextField sx={{ width: "180px" }} />
<TextField sx={{ width: "180px" }} />
<TextField sx={{ width: "180px" }} />
</Box>
</Stack>
</Stack>
In need of guidance to place an action button:
- Constantly aligned to the right side of the screen
- Always positioned on the same row as at least one
TextField
(never in a separate row) - Does not occupy all vertical space (allowing for
TextFields
above and to its left)
My attempts include wrapping it in a combination of flex-inline
, block-inline
Box
, but I am unable to meet all requirements consistently.
Your help is greatly appreciated!