You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm new to using radix-ui/primitives, so there may be an obvious answer to this that I don't know yet, but I'm curious about this so I can better understand some of the principles for how and when to use this library.
I'm wondering why the @radix-ui/react-slider component renders its own elements instead of the native slider component that you get with <input type="range">? It seems like we could have a lot less code by simply applying the theme to the native browser element and letting the browser engine manage some of the basic positioning and functionality for a slider. In addition, I would imagine that mobile browsers and assistive technologies should already have good support of the range input type so that we can meet users expectations for how this type of control should work.
Thanks for helping me learn more about the trade-offs in these decisions.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm new to using radix-ui/primitives, so there may be an obvious answer to this that I don't know yet, but I'm curious about this so I can better understand some of the principles for how and when to use this library.
I'm wondering why the
@radix-ui/react-slider
component renders its own elements instead of the native slider component that you get with<input type="range">
? It seems like we could have a lot less code by simply applying the theme to the native browser element and letting the browser engine manage some of the basic positioning and functionality for a slider. In addition, I would imagine that mobile browsers and assistive technologies should already have good support of the range input type so that we can meet users expectations for how this type of control should work.Thanks for helping me learn more about the trade-offs in these decisions.
Beta Was this translation helpful? Give feedback.
All reactions