Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

161
Vistas
How to give a custom Value for MUI Switch when it is false

I'm using MUI Switch for an On-Off Button. I manually gave the value as "on" and it is working well when switch is true("Im getting output value as "on", but there is no option for changing the default value "false" when the switch is in false state. Is there any way to do that? Code:-

<FormControl>
 <FormControlLabel
  value="on"
  control={<Switch name="status" color="primary"/>}
  {...register("status")}
  label={watch('status') ? "On" : "Off"}
 />
</FormControl> 
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda