Skip to content

Flat Button

brandonk1234 edited this page Dec 5, 2016 · 2 revisions

FlatButton

A Flat button is displayed for frequently used actions. Generally a Button Action has no text, no background, only an icon.

Props

  • className - This prop must be a string.
  • type - This prop must be a string.
  • icon - This prop must be a string.
  • onClick - This prop must be a function.

Example

<FlatButton 
    className="article-item-buttons-edit-article " 
    type="primary" 
    icon="pencil4"  
    onClick={this.onClick} />

// ...React Component
onClick: function() {
    console.log("this flat button has been clicked");
}

Related