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

79
Visualizações
labelPlacement of MUI FormControlLabel not working

I'm using the FormControlLabel component from MUI and the label is always getting placed at the end, even if I set the labelPlacement prop to "start", "top" or "bottom".

This is my code:

              <FormControlLabel
                label="Connected account"
                labelPlacement="start"
                control={
                  <MDBox display="inline">
                    <MDTypography variant="caption" mr={2}>
                      Account Name
                    </MDTypography>
                    <MDButton
                      color="error"
                      size="small"
                      sx={{ m: "0.25rem" }}
                      onClick={() => disconnectAccount(idAccount)}
                    >
                      <MDTypography
                        fontSize="0.6rem"
                        color="white"
                        fontWeight="bold"
                        textTransform="uppercase"
                      >
                        Remove Account
                      </MDTypography>
                    </MDButton>
                  </MDBox>
                }
                sx={{
                  backgroundColor: "#f7fafc",
                  mb: "1rem",
                  borderRadius: "0.5rem",
                  pl: "1rem"
                }}
              />

This is what the UI looks like with labelPlacement set to "end" and "start", respectively, meaning a left margin is added when set to "start":

enter image description here enter image description here Am I missing something here?

almost 4 years ago · Santiago Trujillo
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