import { Button } from 'ihme-ui'
Property | Required | Type(s) | Defaults | Description |
---|---|---|---|---|
className |
CommonPropTypes.className | className applied to button | ||
disabled |
bool | set button as disabled | ||
disabledClassName |
CommonPropTypes.className | styles.disabled | className applied to button when disabled | |
disabledStyle |
CommonPropTypes.style | inline styles to apply to outermost svg element when disabled | ||
icon |
string | path to image to render within button tag | ||
iconClassName |
CommonPropTypes.className | className applied to icon | ||
iconStyle |
CommonPropTypes.style | inline styles to apply to icon | ||
id |
string | id value for button | ||
name |
string | name of button | ||
onClick |
func | executed on click; signature: function(SyntheticEvent) {...} |
||
showSpinner |
bool | display a loading indicator | ||
style |
CommonPropTypes.style | inline styles to apply to button | ||
text |
string | text to render within button tag | ||
theme |
one of: 'green' | color scheme of component (see button.css) |