react-toolbox/spec/components/button.cjsx

36 lines
1.1 KiB
Plaintext
Raw Normal View History

2015-06-21 15:13:30 +03:00
###
@todo
###
Button = require '../../components/button'
module.exports = React.createClass
# -- Events
onClick: (ref, method) ->
@refs[ref][method]()
# -- Render
render: ->
<section>
<h2>Buttons</h2>
<p>lorem ipsum...</p>
2015-07-23 05:38:47 +03:00
<Button caption="Login"/>
2015-07-29 22:31:19 +03:00
<Button caption="Login" type="flat" />
<Button caption="Primary" className="primary" icon="access_alarm" type="flat" />
<Button caption="Secondary" className="accent" type="flat" />
<Button caption="Disabled" disabled type="flat" />
2015-07-07 12:38:00 +03:00
<Button caption="Primary" className="primary" icon="access_alarm" />
<Button caption="Secondary" className="accent" />
2015-07-23 05:38:47 +03:00
<Button caption="Disabled" disabled />
<Button caption="loading" loading />
2015-06-21 15:13:30 +03:00
2015-07-29 22:31:19 +03:00
<Button type="floating" icon="access_alarm" />
<Button type="floating" icon="explore" className="primary" />
<Button type="floating" icon="zoom_in" className="accent" />
<Button type="floating" icon="input" disabled />
<Button type="floating" icon="zoom_in" loading />
2015-06-21 15:13:30 +03:00
</section>