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

descriptions for (range)slider tooltip props #676

Merged
merged 1 commit into from
Oct 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/components/RangeSlider.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ RangeSlider.propTypes = {
*/
pushable: PropTypes.oneOfType([PropTypes.bool, PropTypes.number]),

/**
* Configuration for tooltips describing the current slider values
*/
tooltip: PropTypes.exact({
/**
* Determines whether tooltips should always be visible
Expand All @@ -185,8 +188,8 @@ RangeSlider.propTypes = {
/**
* Determines the placement of tooltips
* See https://github.com/react-component/tooltip#api
* top/bottom{*} sets the _origin_ of the tooltip, so e.g. `topLeft` will
* in reality appear to be on the top right of the handle
* top/bottom{*} sets the _origin_ of the tooltip, so e.g. `topLeft`
* will in reality appear to be on the top right of the handle
*/
placement: PropTypes.oneOf([
'left',
Expand Down
7 changes: 5 additions & 2 deletions src/components/Slider.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ Slider.propTypes = {
*/
max: PropTypes.number,

/**
* Configuration for tooltips describing the current slider value
*/
tooltip: PropTypes.exact({
/**
* Determines whether tooltips should always be visible
Expand All @@ -166,8 +169,8 @@ Slider.propTypes = {
/**
* Determines the placement of tooltips
* See https://github.com/react-component/tooltip#api
* top/bottom{*} sets the _origin_ of the tooltip, so e.g. `topLeft` will
* in reality appear to be on the top right of the handle
* top/bottom{*} sets the _origin_ of the tooltip, so e.g. `topLeft`
* will in reality appear to be on the top right of the handle
*/
placement: PropTypes.oneOf([
'left',
Expand Down