Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Mount the one-by-one Typeform-style UI via UniversalTypeform with a headless runtime.
"use client" import React from "react" import { createRuntime } from "@formlink/runtime" import { RuntimeProvider, ShadCnProvider, UniversalTypeform } from "@formlink/runtime/ui/react" import type { Form } from "@formlink/runtime/schema" import "@formlink/runtime/ui/react/style.css" const form: Form = { id: "example", title: "Example Form", questions: [ { id: "email", title: "Email", type: { name: "text", format: "email" }, validations: { required: { value: true } } }, ], } export default function Example() { const rt = React.useMemo(() => createRuntime({ form, uiMode: "typeform" }), []) const primitives = { /* map your shadcn/ui primitives here */ } as any return ( <RuntimeProvider runtime={rt} showDevtools> <ShadCnProvider components={primitives}> <UniversalTypeform /> </ShadCnProvider> </RuntimeProvider> ) }