require('rc-slider/assets/index.less'); const React = require('react'); const ReactDOM = require('react-dom'); const Slider = require('rc-slider'); const style = { width: 400, margin: 50 }; const marks = { '-10': '-10°C', 0: 0°C, 26: '26°C', 37: '37°C', 50: '50°C', 100: { style: { color: 'red', }, label: 100°C, }, }; function log(value) { console.log(value); } ReactDOM.render(
Slider with marks, `step=null`
Slider with marks and steps
Slider with marks, `included=false`
Slider with marks and steps, `included=false`
Range with marks
Range with marks and steps