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

113
Vistas
Using React-Icons to replace the arrow of Summary & Details html

I am trying to replace the ugly arrow that comes with the <summary></summary> & <details></details> with a chevron up and chevron down from react-icons but when I do so I get
[object,Object] in return

FYI I am using styled-components as well

export const Details = styled.details`
  font-size: 17px;
  font-weight: 600;
  color: #00d5a1;
  padding: 0.5em 0.5em 0;
  &[open] {
    padding: 0.5em;
  }
 // setting my react-icon to after the text
  &[open] summary::after {
    content: '${BiChevronUp}';
  }
`;

&

export const Summary = styled.summary`
  font-weight: bold;
  margin: -0.5em -0.5em 0;
  padding: 0.5em;
  &[open] {
    border-bottom: 1px solid #aaa;
    margin-bottom: 0.5em;
  }
  :-webkit-details-marker {
    display: none;
  }
  list-style: none;
 // setting my react-icon to after the text
  ::after {
    content: ${BiChevronDown};
  }
`;

Can someone please assist? Not sure how I can avoid the [object,Object] and would appreciate if someone could help.

Kind regards

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