Git Product home page Git Product logo

snoopforms-react's Introduction

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 domain="app.snoopforms.com" protocol="http" formId="abcd">
  <SnoopPage name="basicInfo">
    <SnoopElement type="text" name="name" label="Your name" required />
    <SnoopElement type="textarea" name="about" label="About you" 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.

snoopforms-react's People

Contributors

mattinannt avatar jobenjada avatar maltesa avatar

Stargazers

Roman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.