TanStack / ranger

🤖 Headless utilities for building range and multi-range sliders in React, Preact, Solid, Vue, Svelte and Angular
MIT License
753 stars 63 forks source link

Add 'disabled' as a prop to ReactRanger #7

Closed mjcarlin closed 4 years ago

mjcarlin commented 6 years ago

I would like to be able to set the enabled/disabled state of the widget as a whole.

minecrawler commented 1 month ago

@tannerlinsley

How can this be done? I cannot find any docs and also there doesn't seem to be any commit for it https://github.com/TanStack/ranger/commits/main/?after=5bdf486292418cc6e71f72fa023ddb1295051f04+69

I can only think of passing all event handlers through some custom logic first, which checks for disabled state, which isn't nice.