Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

182
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda