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

209
Visualizações
change the indicatorColor tabs Material UI v5

enter image description here

I add tabs in my project but I can not change the background indicator :

const theme = createTheme({
  MuiTabs: {
      root: {
        styleOverrides: {
          indicator: {backgroundColor: "red !important"},
        },

        indicator: {backgroundColor: "red !important"},

      },
      indicator: {backgroundColor: "red !important"},

      styleOverrides: {
        indicator: {backgroundColor: "red !important"},
      },
    },

})

this is my code but it does not work.

and this is my jsx code it might help :

import {TabContext, TabList, TabPanel} from "@material-ui/lab";
import Box from "@mui/material/Box";
import Tab from "@mui/material/Tab";
<TabContext value={value}>
                    <Box sx={{ borderBottom: 1, borderColor: 'divider' }}>
                        <TabList onChange={handleChange} aria-label="lab API tabs example"
                                 textColor="primary"
                                 indicatorColor="primary"

                        >
                            <Tab label="Company Details" value="1" />
                            <Tab label="Admin Details" value="2" />
                        </TabList>
                    </Box>
                    <TabPanel value="1">
                        <FormSimple id={id}/>
                    </TabPanel>
                    <TabPanel value="2"><Admin id={id}/></TabPanel>
                </TabContext>
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I found my mistake it works very well if

import {TabContext, TabList, TabPanel} from "@mui/lab";
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