Better inspection hover

This commit is contained in:
Lukas Martinelli
2016-12-24 17:24:24 +01:00
parent 8f561d8a27
commit 4db5c7cf68
6 changed files with 109 additions and 97 deletions

View File

@@ -7,6 +7,7 @@ class InputBlock extends React.Component {
static propTypes = {
label: React.PropTypes.string.isRequired,
children: React.PropTypes.element.isRequired,
style: React.PropTypes.object,
}
onChange(e) {
@@ -19,6 +20,7 @@ class InputBlock extends React.Component {
display: 'block',
marginTop: margins[2],
marginBottom: margins[2],
...this.props.style,
}}>
<label style={input.label}>{this.props.label}</label>
{this.props.children}