Skip to content

patchkit/patchkit-form-profile-image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Form: Profile Image

Set a user image (modal form)

screenshot.png

import ModalBtn from 'patchkit-modal/btn'
import FormProfileImage from 'patchkit-form-profile-image'

const onSubmit = (image, cb) => { console.log('submit', image); cb() }
<ModalBtn className="fullheight" Form={FormProfileImage} formProps={{currentValue: '/img/foo.png', className: 'text-center', onSubmit: onSubmit}}>
  <a className="btn highlighted">Click to open</a>
</ModalBtn>

About

Set a user image (modal form)

Resources

Stars

Watchers

Forks

Packages

No packages published