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

169
Vistas
Determine input's width based on number of siblings

I have created this component in App.js as a sample, which includes a wrapper form-control__container, a <Textfield /> and a suffix wrapper for the buttons. Okay, the number of buttons is not always two, it can change depending where the component would be used. And this is where the problem comes. Considering the dynamic number of buttons, how can I determine the width of the input, so that when the input text is too long, it won't overlap with the buttons? Or, in this case, I believe a good idea would be to add padding-right instead of giving the input a width which would require some more customization afterwards.

about 4 years ago · Juan Pablo Isaza
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