React Library with form- & survey-elements for the snoopForms platform
⚠️ 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.
npm install @snoopforms/react
Use the SnoopForm components to build your form easily.
SnoopForm:
Use theSnoopForm
wrapper to make the connection to the SnoopForm Data-Platform.SnoopPage:
UseSnoopPage
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.SnoopElements:
You can choose yourSnoopElements
from a wide range of pre-coded components, including text, email, checkboxes, radio-buttons, color-pickers, and many more.
<SnoopForm domain="example.com" formId="abcde123">
<SnoopPage name="first">
<SnoopElement type="text" name={"name"} label="Your name" />
<SnoopElement
type="radio"
name="importance"
label="What's your favorite food?"
options={["Pizza", "Pasta", "Sushi"]}
/>
<SnoopElement type="submit" label="Submit 💪" />
</SnoopPage>
</SnoopForm>
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.