mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 08:31:43 +03:00
19 lines
453 B
JavaScript
19 lines
453 B
JavaScript
|
import FormInput from './FormInput';
|
||
|
import { IconLock } from './icons';
|
||
|
|
||
|
export default ({value, error, children, onInput, className}) => (
|
||
|
<FormInput
|
||
|
type="password"
|
||
|
name="password"
|
||
|
label="Password"
|
||
|
value={value}
|
||
|
error={error}
|
||
|
icon={IconLock}
|
||
|
placeholder="Password..."
|
||
|
required={true}
|
||
|
className={className}
|
||
|
onInput={onInput}>
|
||
|
{ children }
|
||
|
</FormInput>
|
||
|
);
|