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

19 lines
433 B
JavaScript
Raw Normal View History

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