react-toolbox/components/button
Javi Velasco be1bde6ef5 Some fixes and include extract text webpack plugin 2015-10-29 13:40:12 +01:00
..
_config.scss Better variables and props for button 2015-10-21 00:48:24 +02:00
index.jsx Improvements for build 2015-10-23 01:26:12 +02:00
readme.md First steps styling documentation and enhaced style for <Appbar> and <Drawer> 2015-10-29 13:42:14 +07:00
style.scss Some fixes and include extract text webpack plugin 2015-10-29 13:40:12 +01:00

readme.md

Button

A button clearly communicates what action will occur when the user touches it. It consists of text, an image, or both, designed in accordance with your apps color theme.

var Button = require('react-toolbox/components/button');
<Button className="accent" label="Flat button" />
<Button className="primary" type="raised" label="Raised" />
<Button className="accent" type="raised" label="Raised" icon="assignment_turned_in" />
<Button className="primary" type="floating" icon="add" />
<Button className="accent mini" type="floating" icon="add" />

Properties

Name Type Default Description
className String Set the class-styles of the Component.
disabled Boolean If true, component will be disabled.
icon String Default value using JSON data.
label String The text string to use for the floating label element.
loading Boolean If true, component will be disabled and show a loading animation.
ripple Boolean If true, component will have a ripple effect on click.
type String "flat" Type of the component, overwrite this property if you need set a different stylesheet.

Methods

loading

If true, component will be disabled and show a loading animation.

input_instance.loading(true);