This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@snoopforms/react
TypeScript icon, indicating that this package has built-in type declarations

0.3.6 • Public • Published

snoopForms React Library

React Library with form- & survey-elements for the snoopForms platform

npm package version number Actions Status License


⚠️ Note: This repository is still in an early stage of development. We love the open source community and want to show what we are working on early. We will update this readme with more information once it is safe to use. Until then, feel free to share your thoughts, contact us, and contribute if you'd like.

Installation

npm install @snoopforms/react

How to use it 🤓

Use the SnoopForm components to build your form easily.

  • SnoopForm: Use the SnoopForm wrapper to make the connection to the SnoopForm Data-Platform.
  • SnoopPage: Use SnoopPage to tell the Form where you need an new page. The SnoopForms library will only show the current page to the user. That way you can build long, more complex forms or a Typeform-like form-view, where the page changes after every question.
  • SnoopElement: You can choose your SnoopElement from a wide range of pre-coded components, including text, email, checkboxes, radio-buttons, and many more.

Example

<SnoopForm formId="abcd">
  <SnoopPage name="basicInfo">
    <SnoopElement
      type="text"
      name="name"
      label="Your name"
      help="Please use your real name"
      required
    />
    <SnoopElement
      type="textarea"
      name="about"
      label="About you"
      help="e.g. your hobbies etc."
      required
    />
    <SnoopElement name="submit" type="submit" label="Submit" />
  </SnoopPage>
  <SnoopPage name="advancedInfo">
    <SnoopElement
      type="checkbox"
      name="programming-lanuguages"
      label="What programming languages do you love?"
      options={['C++', 'Javascript', 'Scala', 'Assembler']}
    />
    <SnoopElement name="submit" type="submit" label="Submit" />
  </SnoopPage>
  <SnoopPage name="thankyou" thankyou>
    <p>Thanks a lot for your time and insights 🙏</p>
  </SnoopPage>
</SnoopForm>

Contribute 🙏

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

Dependencies (1)

Dev Dependencies (20)

Package Sidebar

Install

npm i @snoopforms/react

Weekly Downloads

1

Version

0.3.6

License

MIT

Unpacked Size

121 kB

Total Files

26

Last publish

Collaborators

  • matthiasnannt