patchkit-form-profile-name

1.2.1 • Public • Published

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.

Dependencies (2)

Dev Dependencies (7)

Package Sidebar

Install

npm i patchkit-form-profile-name

Weekly Downloads

4

Version

1.2.1

License

GPL-3.0

Last publish

Collaborators

  • pfraze
  • cel