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

179
Views
How do I put these text and icon side by side?

I have these text and icon which are really far from each other

enter image description here

How can I put the Icon on the right side of the text? Something like this:

Water Jug->

Codesandbox: https://codesandbox.io/s/responsivestack-material-demo-forked-330ogi?file=/demo.js

Codes:

<Grid
      container
      spacing={{ xs: 2, md: 3 }}
      columns={{ xs: 4, sm: 8, md: 12 }}
    >
      {product &&
        product.map((item, i) => (
          <Grid item xs={2} sm={4} md={4} key={i}>
            <Stack direction="row" spacing={2}>
              <ListItemText primary={item.prodName} />
              <ListItemIcon>
                <ArrowForwardIcon style={{ marginLeft: "1px" }} />
              </ListItemIcon>
            </Stack>

          </Grid>
        ))}
    </Grid>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Replace with this:

  <div style={{display: "flex", flexDirection: "row",  alignItems: "center"}}>
     <ListItemText primary={item.prodName} />
     <ListItemIcon>
       <ArrowForwardIcon style={{ marginLeft: "1px" }} />
     </ListItemIcon>
  </div>
about 4 years ago · Juan Pablo Isaza Report
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!