mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-18 16:01:40 +03:00
19 lines
441 B
JavaScript
19 lines
441 B
JavaScript
|
import FormInput from './FormInput';
|
||
|
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>
|
||
|
);
|