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

238
Vistas
How can I customize the Mapbox autocomplete input my way?

I'm doing a project that uses Mapbox. Used as auto-complete and user location functions, it's exactly what I need and it works the way I need it.

But I would like to style these elements, or at least put these functions in the fields I already have. But I am not able to do this at all.

How could I style these elements with some freedom?

In the screenshot attached has the auto-complete and the field I want to put it in, in addition to the location button at the bottom that I want to style following the project's visual pattern.

I've tried selecting elements after inspecting by browser and styling by classes by css, but unfortunately it didn't work.

I've also read their documentation and unfortunately I didn't find anything about them either.

Screenshot of my website

map.addControl(
  new MapboxGeocoder({
    accessToken: mapboxgl.accessToken,
    mapboxgl: mapboxgl,
    placeholder: "Para onde iremos?",
  })
);
section header input {
  border: 1px solid var(--bg);
  border-radius: 50px 0 0 50px;
  color: var(--color-text);
  background: var(--bg);
  padding: 1rem;
  width: 100%;
  font-size: 1.125rem;
  text-overflow: ellipsis;
}
<header>
  <div id="barra-pesquisa">
    <input id="searchTextField" type="text" placeholder="Para onde iremos?" autocomplete="on" />
    <button id="criar-rota">Ir</button>
  </div>
</header>

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