npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

swisspoll-react

v0.3.1

Published

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

Downloads

73

Readme

snoopForms React Library

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

npm package version number Actions Status License

:warning: 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"
      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.