2015-07-19 22:50:52 +03:00
|
|
|
Slider = require '../../components/slider'
|
|
|
|
|
|
|
|
module.exports = React.createClass
|
2015-07-21 23:23:47 +03:00
|
|
|
test: ->
|
|
|
|
marginTop: "1rem"
|
|
|
|
|
2015-07-19 22:50:52 +03:00
|
|
|
render: ->
|
|
|
|
<section>
|
2015-07-21 23:23:47 +03:00
|
|
|
<h2 style={@test()}>Sliders</h2>
|
2015-07-19 22:50: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-07-21 23:23:47 +03:00
|
|
|
|
|
|
|
<Slider pinned value={1} min={0} max={10} step={1} editable />
|
2015-07-19 22:50:52 +03:00
|
|
|
</section>
|