patchkit-form-profile-image

1.1.0 • Public • Published

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>

Readme

Keywords

Package Sidebar

Install

npm i patchkit-form-profile-image

Weekly Downloads

8

Version

1.1.0

License

GPL-3.0

Last publish

Collaborators

  • cel
  • pfraze