Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

229
Visualizações
how to customize material ui icon by adding plus

I'm using material ui icons, is there any way to add plus to icons ?

This is my icon :

import ApartmentIcon from '@mui/icons-material/Apartment';

enter image description here

and that icon should have plus to it like here:

enter image description here

I have been trying to find a way but did not find anything, these are icons i want plus to them:' CameraAlt, Apartment, Web, Assessment, Description,', any suggestions ?

about 4 years ago · Juan Pablo Isaza
2 Respostas
Responde à pergunta

0

i think this is the icon you are looking for

import AddAPhotoIcon from '@mui/icons-material/AddAPhoto';

about 4 years ago · Juan Pablo Isaza Relatório

0

Using sx property here is what you need.

<Box sx={{ background: "black" }}>
  <Box sx={{ position: "relative", display: "inline", color: "white" }}>
    <CameraAltOutlinedIcon sx={{ fontSize: 40 }} />
    <AddIcon
      sx={{
        position: "absolute",
        right: "-5px",
        bottom: "2px",
        color: "black",
        fontSize: 22,
        strokeWidth: "6",
        stroke: "black"
      }}
    />
    <AddIcon
      sx={{
        position: "absolute",
        right: "-6px",
        bottom: "1px",
        color: "white",
        fontSize: 22
      }}
    />
  </Box>
</Box>

I had to use two 'plus' svg AddIcons one inside the other with some stroke to the one on the back to act like a frame for the one on the front and have a better looking result. The only thing you need to do is adjust the left/right attributes depending the main icon you are using and the colors to match your background.

Here also is a working codepen

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda