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
Extend the SliderItem type for value to include React.ReactNode.
<Handle {...hanleProps} handle={{ ...handle, value: ( <div role="button" tabIndex={0} style={{ whiteSpace: 'pre' }} onMouseUp={disableTimeSelectionChange} onMouseDown={enableTimeSelectionChange} > {formatTime(time.selected)} {formatDate(time.selected)} </div> ) }} />
From this:
react-compound-slider/src/types.ts
Lines 3 to 7 in 74e7020
.. to this:
export interface SliderItem { id: string; value: number | React.ReactNode; percent: number; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Problem or feature description:
Extend the SliderItem type for value to include React.ReactNode.
Would be usefull for situatiations like this
How change would look
From this:
react-compound-slider/src/types.ts
Lines 3 to 7 in 74e7020
.. to this:
The text was updated successfully, but these errors were encountered: