Skip to content

patchkit/patchkit-form-prompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Form: Prompt

Simple text-input prompt modal-form.

screenshot.png

import ModalBtn from 'patchkit-modal/btn'
import FormPrompt from 'patchkit-form-prompt'

const onSubmit = (answer, cb) => { console.log('submit', answer); cb() }
<ModalBtn
  className="center-block"
  nextLabel="OK"
  Form={FormPrompt}
  formProps={{ prompt: <h1>Please enter your name:</h1>, placeholder: 'bob', onSubmit: onSubmit }}>
  <a className="btn highlighted">Click to open</a>
</ModalBtn>

About

Simple text-input prompt modal-form

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published