Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.
TypeScript accessibilityalternativecloudflarecloudflare-workersdesignfreefrontendopen-sourceradix-uireactremixweb-developmentwebflowwebsite-builderwebsite-developmentwebsiteswebstudio
/* eslint-disable */
/* This is a auto generated file for building the project */
import { Fragment, useState } from "react";
import { renderText, useResource, useVariableState } from "@webstudio-is/react-sdk/runtime";
import { Body as Body, WebhookForm as WebhookForm } from "@webstudio-is/sdk-components-react-router";
import { Box as Box, Label as Label, Input as Input, Button as Button, Heading as Heading } from "@webstudio-is/sdk-components-react/components";
export const projectId = "cddc1d44-af37-4cb6-a430-d300cf6f932d";
export const projectDomain = "webstudio-fixture-project-a-0su3o";
export const lastPublished = "2026-01-15T16:19:55.574Z";
export const siteName = "KittyGuardedZone";
export const breakpoints = [{"id":"UoTkWyaFuTYJihS3MFYK5"},{"id":"ZMaWCtWpH-ao0e_kgIHqR","minWidth":372},{"id":"Z8WjyXWkCrr35PXgjHdpY","minWidth":472}];
export const favIconAsset: string | undefined =
"cat_silhouette_BDpTbUFSpVbfUWQZNxbBG.png";
// Font assets on current page (can be preloaded)
export const pageFontAssets: string[] =
[]
export const pageBackgroundImageAssets: string[] =
[]
const Page = (_props: { system: any; }) => {
let [formState, set$formState] = useVariableState<any>("initial")
let [formState_1, set$formState_1] = useVariableState<any>("initial")
return <Body
className={`w-body`}>
<WebhookForm
state={formState == null ? formState : String(formState)}
onStateChange={(state: any) => {
formState = state
set$formState(formState)
}}
className={`w-webhook-form`}>
{(formState === 'initial' || formState === 'error') &&
<Box
className={`w-box`}>
<Heading
tag={"h3"}
className={`w-heading`}>
{"Default form"}
</Heading>
<Label
className={`w-input-label`}>
{"Name"}
</Label>
<Input
name={"name"}
className={`w-text-input`} />
<Label
className={`w-input-label`}>
{"Email"}
</Label>
<Input
name={"email"}
className={`w-text-input`} />
<Button
className={`w-button`}>
{"Submit"}
</Button>
</Box>
}
{(formState === 'success') &&
<Box
className={`w-box`}>
{"Thank you for getting in touch!"}
</Box>
}
{(formState === 'error') &&
<Box
className={`w-box`}>
{"Sorry, something went wrong."}
</Box>
}
</WebhookForm>
<WebhookForm
state={formState_1 == null ? formState_1 : String(formState_1)}
onStateChange={(state: any) => {
formState_1 = state
set$formState_1(formState_1)
}}
action={"action"}
method={"get"}
className={`w-webhook-form`}>
{(formState_1 === 'initial' || formState_1 === 'error') &&
<Box
className={`w-box`}>
<Heading
tag={"h3"}
className={`w-heading`}>
{"Form with custom action and method"}
</Heading>
<Label
className={`w-input-label`}>
{"Name"}
</Label>
<Input
name={"name"}
className={`w-text-input`} />
<Label
className={`w-input-label`}>
{"Email"}
</Label>
<Input
name={"email"}
className={`w-text-input`} />
<Button
className={`w-button`}>
{"Submit"}
</Button>
</Box>
}
{(formState_1 === 'success') &&
<Box
className={`w-box`}>
{"Thank you for getting in touch!"}
</Box>
}
{(formState_1 === 'error') &&
<Box
className={`w-box`}>
{"Sorry, something went wrong."}
</Box>
}
</WebhookForm>
</Body>
}
export { Page }