Styling inputs

This commit is contained in:
2018-05-15 08:43:07 +10:00
parent d8b1c41538
commit 7500de1649
7 changed files with 46 additions and 6 deletions

View File

@ -60,14 +60,18 @@ export default class Input extends React.Component {
//First we need to switch things like submit and reset
if(type == "submit" || type == "reset" || type == "button") {
element = <Button {...this.props} />;
return <Button {...this.props} />;
} else if(type == "textarea") {
element = <textarea {...this.props} className={clazzes}>{ value }</textarea>
} else {
element = <ElementType {...this.props} type={type} className={clazzes} />
}
return element;
return (
<div class="o-input-wrapper">
{ element }
</div>
)
}
}