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

284
Vistas
any way to show only image in semantic ui dropdown selected option but show both the image and name in the dropdown list

I am using React semantic UI. I am rendering a dropdown. I want that when an option is selected only the image should show, in the current case only the name shows but my expected result is that only the image should show but both the image and the name should show in the dropdown options

Here is my dropdown code:

options = [
  { key:"a", value: 1, name: 'uni',  text: "first", image: {avatar: true, src: require('../images/sqare.svg' )}},
  { key:"b", value: 2, name: 'duo',  text: 'second', image: {avatar: true, src: require('../images/circle.svg' )}},
  { key:"c", value: 3, name: 'tri',  text: ' third', image: {avatar: true, src: require('../images/triangle.svg' )}},
  { key:"d", value: 4, name: 'quart', text: 'fourth', image: {avatar: true, src: require('../images/hexa.svg' )}},
];

 const  handleDropDownSelect = (event, data) => {
    onChangeValue(data.value)

  };
  const Dropdown = () => (
return(
      <Dropdown
          placeholder = "abc"
          fluid
          selection
          options={options}
          onChange={handleDropDownSelect}

      />)

 <DropDownContainer>
            <Dropdown />
 </DropDownContainer>```
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