1.2.1 • Published 8 years ago

patchkit-form-profile-name v1.2.1

Weekly downloads
3
License
GPL-3.0
Repository
github
Last release
8 years ago

Form: Profile Name

Set a user name (modal form)

screenshot.png

import ModalBtn from 'patchkit-modal/btn'
import FormProfileName from 'patchkit-form-profile-name'

const onSubmit = (name, cb) => { console.log('submit', name); cb() }
<ModalBtn className="fullheight" Form={FormProfileName} formProps={{currentValue: 'bob', className: 'text-center vertical-center', onSubmit: onSubmit}}>
  <a className="btn highlighted">Click to open</a>
</ModalBtn>

If the rename is for another user than the local user, set the isOtherUser prop on the form to true.