Last active
June 30, 2017 09:32
-
-
Save barneycarroll/7803f7a3246d62178d58702439ad6a8b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import Input from './Input.js'; | |
const InputGroup = props => ( | |
<div> | |
{props.inputHasLabel && | |
<label | |
htmlFor={props.inputName} | |
className="label" | |
> | |
{props.inputLabel} | |
</label> | |
} | |
<p className="control"> | |
<Input | |
inputName={props.inputName} | |
inputType={props.inputType} | |
inputClasses={props.inputClasses} | |
inputChange={props.inputChange} | |
/> | |
</p> | |
</div> | |
); | |
export default InputGroup; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment