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

385
Views
Los íconos de @material-ui no se muestran en la pantalla

Estoy tratando de crear un componente de barra lateral e importar los diferentes íconos para crear la interfaz de usuario, pero no se muestran en la pantalla. Probé otras soluciones mencionadas aquí, no funcionó del todo.

 <SidebarOption Icon = {InsertCommentIcon} title ="Threads"/> <SidebarOption Icon = {InboxIcon} title ="Mentions & Reactions"/> <SidebarOption Icon = {DraftsIcon} title ="Saved items"/> <SidebarOption Icon = {BookmarkBorderIcon} title ="Channel browser"/> <SidebarOption Icon = {PeopleAltIcon} title ="People & user groups"/> <SidebarOption Icon = {AppsIcon} title ="Apps"/> <SidebarOption Icon = {FileCopyIcon} title ="File browser"/> <SidebarOption Icon = {ExpandLessIcon} title ="Show less"/> <SidebarOption Icon = {ExpandMoreIcon} title ="Show more"/>

hizo la importación como de costumbre

 import InsertCommentIcon from "@material-ui/icons/InsertComment"; import DraftsIcon from "@material-ui/icons/Drafts"; import InboxIcon from "@material-ui/icons/Inbox";

y así sucesivamente para todos los iconos.

Pero los íconos no están visibles en la barra lateral. ¿Cuál crees que podría ser el problema y qué debo solucionar?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

tus importaciones están mal, prueba estas

 import InsertCommentIcon from '@mui/icons-material/InsertComment'; import DraftsIcon from '@mui/icons-material/Drafts'; import InboxIcon from '@mui/icons-material/Inbox';

y así ...

también solo para estar seguro, asegúrese de haber instalado MUI e iconos correctamente:

 npm install @mui/material

y

 npm install @mui/icons-material
about 4 years ago · Juan Pablo Isaza Report
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!