Skip to content

Commit

Permalink
proptypes
Browse files Browse the repository at this point in the history
  • Loading branch information
mnajdova committed Nov 20, 2020
1 parent 9860b00 commit 3398baf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/pages/api-docs/slider.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ The `MuiSlider` name can be used for providing [default props](/customization/gl
| <span class="prop-name">orientation</span> | <span class="prop-type">'horizontal'<br>&#124;&nbsp;'vertical'</span> | | The slider orientation. |
| <span class="prop-name">scale</span> | <span class="prop-type">func</span> | | A transformation function, to change the scale of the slider. |
| <span class="prop-name">step</span> | <span class="prop-type">number</span> | | The granularity with which the slider can step through values. (A "discrete" slider.) The `min` prop serves as the origin for the valid values. We recommend (max - min) to be evenly divisible by the step.<br>When step is `null`, the thumb can only be slid onto marks provided with the `marks` prop. |
| <span class="prop-name">sx</span> | <span class="prop-type">object</span> | | The system prop that allows defining system overrides as well as additional CSS styles. |
| <span class="prop-name">sx</span> | <span class="prop-type">object<br>&#124;&nbsp;string</span> | | The system prop that allows defining system overrides as well as additional CSS styles. |
| <span class="prop-name">track</span> | <span class="prop-type">'inverted'<br>&#124;&nbsp;'normal'<br>&#124;&nbsp;false</span> | | The track presentation:<br>- `normal` the track will render a bar representing the slider value. - `inverted` the track will render a bar representing the remaining slider value. - `false` the track will render without a bar. |
| <span class="prop-name">value</span> | <span class="prop-type">Array&lt;number&gt;<br>&#124;&nbsp;number</span> | | The value of the slider. For ranged sliders, provide an array with two values. |
| <span class="prop-name">valueLabelDisplay</span> | <span class="prop-type">'auto'<br>&#124;&nbsp;'off'<br>&#124;&nbsp;'on'</span> | | Controls when the value label is displayed:<br>- `auto` the value label will display when the thumb is hovered or focused. - `on` will display persistently. - `off` will never display. |
Expand Down
2 changes: 1 addition & 1 deletion packages/material-ui/src/Box/Box.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Box.propTypes = {
/**
* @ignore
*/
sx: PropTypes.object,
sx: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
};

if (process.env.NODE_ENV !== 'production') {
Expand Down
2 changes: 1 addition & 1 deletion packages/material-ui/src/Slider/Slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ Slider.propTypes = {
/**
* The system prop that allows defining system overrides as well as additional CSS styles.
*/
sx: PropTypes.object,
sx: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
/**
* The track presentation:
*
Expand Down

0 comments on commit 3398baf

Please sign in to comment.