Skip to content

Instantly share code, notes, and snippets.

@barneycarroll
Last active June 30, 2017 09:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barneycarroll/7803f7a3246d62178d58702439ad6a8b to your computer and use it in GitHub Desktop.
Save barneycarroll/7803f7a3246d62178d58702439ad6a8b to your computer and use it in GitHub Desktop.
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