Skip to content
This repository was archived by the owner on Feb 12, 2018. It is now read-only.

Latest commit

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

capture-submit

THIS IS NO LONGER MAINTAINED USE @scienceai/ui INSTEAD

styled with prettier

React higher order component that calls a onSubmit callback on blur, pressing enter etc...

importCaptureSubmitfrom'capture-submit';importPaperInputfrom'paper-input';constControlledPaperInput=CaptureSubmit(PaperInput);
...
<ControlledPaperInputtype="text"name="name"label="name"value="value"onSubmit={(e)=>{console.log('submission! (blur, enter is pressed etc..')}}/>

capture-submit will do the right thing for select input and textarea (see sources).

About

React higher order component that calls a onSubmit callback on blur, pressing enter etc...

Resources

Stars

0 stars

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages