Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions docs/src/app/components/pages/components/buttons.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ class ButtonPage extends React.Component {
{
name: 'Flat Button',
infoArray: [
{
name: 'disabled',
type: 'bool',
header: 'optional',
desc: 'Disables the button if set to true.'
},
{
name: 'label or children',
type: 'string (label) or HTML/React elements (children)',
Expand Down Expand Up @@ -118,6 +124,12 @@ class ButtonPage extends React.Component {
{
name: 'Raised Button',
infoArray: [
{
name: 'disabled',
type: 'bool',
header: 'optional',
desc: 'Disables the button if set to true.'
},
{
name: 'label or children',
type: 'string (label) or HTML/React elements (children)',
Expand Down Expand Up @@ -162,6 +174,12 @@ class ButtonPage extends React.Component {
{
name: 'Floating Action Button',
infoArray: [
{
name: 'disabled',
type: 'bool',
header: 'optional',
desc: 'Disables the button if set to true.'
},
{
name: 'iconClassName',
type: 'string',
Expand Down
1 change: 1 addition & 0 deletions src/floating-action-button.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ var RaisedButton = React.createClass({
},

propTypes: {
disabled: React.PropTypes.bool,
iconClassName: React.PropTypes.string,
iconStyle: React.PropTypes.object,
mini: React.PropTypes.bool,
Expand Down
1 change: 1 addition & 0 deletions src/raised-button.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ var RaisedButton = React.createClass({

propTypes: {
className: React.PropTypes.string,
disabled: React.PropTypes.bool,
label: function(props, propName, componentName){
if (!props.children && !props.label) {
return new Error('Warning: Required prop `label` or `children` was not specified in `'+ componentName + '`.')
Expand Down