We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is the current behavior? I'm confused about the usage of styles prop in useSlider. Code at: https://github.com/streamich/react-use/blob/master/src/useSlider.ts#L16. src/useSlider.ts
src/useSlider.ts
// type declared export interface Options { ... styles: boolean | CSSProperties; }
// only used as a judge
const styles = options.styles === undefined ? true : options.styles; if (ref.current && styles) { ref.current.style.userSelect = 'none'; }
As shown in the above code, could anyone tell me why CSSProperties are used ?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What is the current behavior?
I'm confused about the usage of styles prop in useSlider.
Code at: https://github.com/streamich/react-use/blob/master/src/useSlider.ts#L16.
src/useSlider.ts
// only used as a judge
As shown in the above code, could anyone tell me why CSSProperties are used ?
The text was updated successfully, but these errors were encountered: