Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

110
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!