Skip to content

Commit

Permalink
Add slider test component
Browse files Browse the repository at this point in the history
  • Loading branch information
javivelasco committed Jul 19, 2015
1 parent 82ce479 commit ad1ae54
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions spec/components/slider.cjsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Slider = require '../../components/slider'

module.exports = React.createClass
render: ->
<section>
<h2>Sliders</h2>
<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>
<Slider pinned snaps value={1} min={0} max={10} step={1} editable />
</section>

0 comments on commit ad1ae54

Please sign in to comment.