import { RadioGroup } from "@headlessui/react"; import Link from "next/link"; import { useState } from "react"; import { FaReact, FaVuejs } from "react-icons/fa"; import { classNames } from "../../lib/utils"; const libs = [ { id: "react", name: "React", href: "#", bgColor: "bg-cyan-500", ringColor: "ring-cyan-500", icon: FaReact, }, { id: "reactNative", name: "React Native", comingSoon: true, href: "#", members: 12, bgColor: "bg-cyan-600", ringColor: "ring-cyan-600", icon: FaReact, }, { id: "vue", name: "Vue.js", comingSoon: true, href: "#", members: 16, bgColor: "bg-emerald-400", ringColor: "ring-emerald-400", icon: FaVuejs, }, ]; export default function FormCode({ formId }) { const [selectedLib, setSelectedLib] = useState(null); return ( <>

Get started

Welcome to your new form! To start using snoopHub with your application you need to build a form using our libs for your preferred programming language or framework.



Choose your framework
{selectedLib?.id === "react" ? (

snoopReact How to build your form

Getting the snoopForms React Library up and running with Node Package Manager:

                  
                    npm install --save @snoopforms/react
                  
                

Then build your form using our built-in components

                  
                    {`import React from "react";
import { SnoopForm, SnoopElement, SnoopPage } from "@snoopforms/react";

export default function Example({}) {
  return (
     {
        // do something with the data additional to sending to snoopForms
      }}
    >
      
        
      
      
        
        
      
      
        

Thank you!

); }`}

To read more about building your form with snoopReact, check out our{" "} docs .

Are you ready to go live and receive submissions? Go to{" "} Pipelines {" "} to pipe your submissions to other systems or go straight to the{" "} Results {" "} to see how your form is used and keep track of your submissions.

) : null}
); }