Initial commit
[parsely-signature-composer.git] / src / components / SignatureCreator / SignatureForm / SignatureForm.js
blob42ec620748c4368a3478a154c299ace4cd8d9509
1 import React from 'react';
2 import Input from '../../Forms/Input/Input';
3 import Button from '../../Forms/Button/Button';
4 import CopyOnClick from '../../CopyOnClick/CopyOnClick';
6 const SignatureForm = function({ onChange, onSubmit, className }) {
7 return (
8 <form className={className} onSubmit={onSubmit}>
9 <Input label='Name' type='text' autoFocus={true} onChange={onChange} />
10 <Input label='Position' type='text' onChange={onChange} />
11 <CopyOnClick target='.SignaturePreview'>
12 <Button text='Copy' />
13 </CopyOnClick>
14 </form>
18 export default SignatureForm;