[Slider] Remove deprecated props by siriwatknp · Pull Request #47996 · mui/material-ui (original) (raw)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really curious why in Slider we don't follow other components. Just pass elementType as the default one, then let the useSlot get what it needs from externalForwardedProps. Here we're manually getting the elementType, then the slotsProps, and then we pass them to useSlot.

I don't know which one is better, but from what I've seen in other components so far, we're letting useSlot handle all of this.