Created
September 2, 2019 02:18
-
-
Save ryanpedersen42/adb4ab6be30f048a45fc6a8d5060141c to your computer and use it in GitHub Desktop.
form-input.jsx
This file contains hidden or 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 './form-input.styles.scss'; | |
| const FormInput = ({ handleChange, label, ...otherProps }) => ( | |
| <div className='group'> | |
| <input className='form-input' onChange={handleChange} {...otherProps} /> | |
| {label ? ( | |
| <label className='shrink form-input-label'> | |
| {label} | |
| </label> | |
| ) : null} | |
| </div> | |
| ); | |
| export default FormInput; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment