Joshua Shoemaker 76327fbc9e init commit
2020-07-11 17:00:53 -05:00

18 lines
431 B
JavaScript

import React, { Component } from 'react'
import './TextField.css'
class TextField extends Component {
render = () => {
const { id, label, onBlur, inlineLabel } = this.props
return (
<div className='TextField'>
{ label ? <label htmlFor={id}>{label}</label> : '' }
{!inlineLabel ? <br /> : ''}
<input type='text' id={this.props.id} onBlur={onBlur} />
</div>
)
}
}
export default TextField