Added more button customization options

This commit is contained in:
2018-05-11 19:53:11 +10:00
parent 0c9c80f65d
commit b4e469743f
4 changed files with 18 additions and 4 deletions

View File

@ -65,6 +65,10 @@ class Button extends React.Component {
contents = this.props.children;
}
if(this.props.style) {
clazzes += " o-btn--style-" + this.props.style;
}
//Determine extra clazzes
if(this.props.className) this.clazzes += " "+this.props.className;