Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

147
Views
Ocultar el control deslizante en la biblioteca material-ui

Estoy tratando de ocultar el pulgar deslizante. Traté de hacerlo sin usar una biblioteca, pero creo que debería ser mejor usar material-ui porque tal vez sería más fácil, pero estoy aquí para pedir ayuda.

Aquí está mi código:

 import * as React from "react"; import Slider from "@mui/material/Slider"; import "./style.css"; export default function ContinuousSlider() { const [value, setValue] = React.useState(30); const handleChange = (event, newValue) => { setValue(newValue); }; return ( <Slider aria-label="Volume" value={value} onChange={handleChange} focusVisible={false} /> ); }

estilo:

 .MuiSlider-thumb { background-color: orange; box-shadow: none; width: 0px; height: 0px; } .MuiSlider-rail { background-color: orange; border: none; } .MuiSlider-track { background-color: red; border: none; } .MuiSlider-rail { background-color: green; }

código de trabajo aquí

resultado:

ingrese la descripción de la imagen aquí

enfocado

ingrese la descripción de la imagen aquí

Pude ocultar el pulgar principal pero no el "pulgar secundario". No sé cómo llamarlo, el azul claro que aparece haciendo clic en el pulgar. ¿Como puedo quitarlo?

Siempre quiero el siguiente estilo, incluso cuando el usuario arrastra el pulgar: ingrese la descripción de la imagen aquí

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Puede agregar una anulación de estilo para el desplazamiento (pseudoclase) y el estado activo (para MUI es .Mui-active )

 .MuiSlider-thumb:is(:hover, .Mui-active) { display: none; }

Manifestación

Editar demostración de material de ContinuousSlider (bifurcado)

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!