Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit 607d708

Browse files
authored
Merge pull request #676 from plotly/slider-tooltip-desc
descriptions for (range)slider tooltip props
2 parents 9c81fa9 + 7688c96 commit 607d708

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

src/components/RangeSlider.react.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ RangeSlider.propTypes = {
175175
*/
176176
pushable: PropTypes.oneOfType([PropTypes.bool, PropTypes.number]),
177177

178+
/**
179+
* Configuration for tooltips describing the current slider values
180+
*/
178181
tooltip: PropTypes.exact({
179182
/**
180183
* Determines whether tooltips should always be visible
@@ -185,8 +188,8 @@ RangeSlider.propTypes = {
185188
/**
186189
* Determines the placement of tooltips
187190
* See https://github.com/react-component/tooltip#api
188-
* top/bottom{*} sets the _origin_ of the tooltip, so e.g. `topLeft` will
189-
* in reality appear to be on the top right of the handle
191+
* top/bottom{*} sets the _origin_ of the tooltip, so e.g. `topLeft`
192+
* will in reality appear to be on the top right of the handle
190193
*/
191194
placement: PropTypes.oneOf([
192195
'left',

src/components/Slider.react.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ Slider.propTypes = {
156156
*/
157157
max: PropTypes.number,
158158

159+
/**
160+
* Configuration for tooltips describing the current slider value
161+
*/
159162
tooltip: PropTypes.exact({
160163
/**
161164
* Determines whether tooltips should always be visible
@@ -166,8 +169,8 @@ Slider.propTypes = {
166169
/**
167170
* Determines the placement of tooltips
168171
* See https://github.com/react-component/tooltip#api
169-
* top/bottom{*} sets the _origin_ of the tooltip, so e.g. `topLeft` will
170-
* in reality appear to be on the top right of the handle
172+
* top/bottom{*} sets the _origin_ of the tooltip, so e.g. `topLeft`
173+
* will in reality appear to be on the top right of the handle
171174
*/
172175
placement: PropTypes.oneOf([
173176
'left',

0 commit comments

Comments
 (0)