Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

212
Views
Reactjs mui spacing Stack and Grid

I used Stack, Divider Box and Grid, I am having trouble when spacing, please see the result below

<Stack direction="row"  spacing={1}>
  <Divider>
     <Box py={3} sx={{width: '100%', border: 1}}>
          <Stack
            direction="row"
            justifyContent="flex-end"
            alignItems="center"
            spacing={3}
            sx={{ marginBottom: '9px', width: 150 }}
          >

           <Grid container spacing={3} sx={{float: 'right'}} justify="flex-end">
                <Grid item xs sx={{float: 'right'}}>
                <LocalFireDepartmentIcon
                color={selectedThreat ? '#E01C1C' : 'disable'}
              />
                <Typography
                variant="subtitle2"
                sx={{ letterSpacing: '1.5px', marginLeft: '4px' }}
                className={classes.upperCase}
              >
                {name}
              </Typography>
                </Grid>
                <Grid item xs sx={{float: 'right'}}>
                <Typography
                variant="p"
                sx={{ letterSpacing: '1.5px', textDecoration: "underline", color: '#191F25', fontSize: '14px', lineHeight: '20px'  }}
                onClick={handleOpen}
              >
                Cancel
              </Typography>
                </Grid>
            </Grid>

          </Stack>
     </Box>
  </Divider>
</Stack>

Expected Result

enter image description here

current result

enter image description here

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!