Ghost/ghost/members-auth-pages/components/EmailInput.js

19 lines
439 B
JavaScript
Raw Normal View History

import FormInput from './FormInput';
2019-05-07 11:29:07 +03:00
import {IconEmail} from './icons';
export default ({value, error, children, onInput, className}) => (
<FormInput
type="email"
name="email"
label="Email"
value={value}
error={error}
icon={IconEmail}
placeholder="Email..."
required={true}
className={className}
onInput={onInput}>
{children}
</FormInput>
);