react-toolbox/spec/components/slider.jsx

21 lines
510 B
React
Raw Normal View History

import React from 'react';
2015-09-21 11:01:52 +03:00
import Slider from '../../components/slider';
export default React.createClass({
displayName: 'SliderTest',
render () {
return (
<section>
2015-10-10 12:25:47 +03:00
<h5>Sliders</h5>
2015-09-21 11:01:52 +03:00
<p>Normal slider</p>
<Slider />
<p>With steps, initial value and editable</p>
<Slider value={5} min={0} max={10} editable />
<p>Pinned and with snaps</p>
2015-10-10 12:25:47 +03:00
<Slider pinned snaps value={1} min={0} max={10} step={1} editable />
2015-09-21 11:01:52 +03:00
</section>
);
}
});