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

269
Visualizações
React MUI Switch Styling Randomly Changes?

Trying to incorporate a switch component from MUI into my code and for some reason, upon initial page load the switch looks like how it should, identical to the one on the MUI site. On reload however, it changes and looks like this:

Slider Styling

How do I get it to not change into that? This is what my code looks like in that section:

<div
  style={{
    zIndex: 1,
    position: "absolute",
    margin: "25px 0 0 0",
    float: "left",
    left: "22px"
  }}>
  <label>Show Voided Orders:</label>
  <Switch  
  defaultChecked={false} 
  />
  </div>
about 4 years ago · Santiago Gelvez
1 Respostas
Responde à pergunta

0

You can try these methods in the document (https://mui.com/material-ui/customization/how-to-customize/).

example:
https://mui.com/material-ui/react-switch/#customization

CSS class name for reference: https://mui.com/material-ui/api/switch/#css

about 4 years ago · Santiago Gelvez 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