Skip to content

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.

1.1 KB
Raw Blame
import { WebhookFormIcon } from "@webstudio-is/icons/svg";
import type { WsComponentMeta } from "@webstudio-is/sdk";
import { form } from "@webstudio-is/sdk/normalize.css";
import { props } from "./__generated__/webhook-form.props";

/** @deprecated Existing Webhook Forms remain supported through the next release. Use Form for new forms. */
export const meta: WsComponentMeta = {
  label: "Webhook Form",
  description:
    "Deprecated. Existing Webhook Forms remain supported through the next release. Use the new Form component in the Forms section instead.",
  deprecated: true,
  icon: WebhookFormIcon,
  presetStyle: {
    form,
  },
  states: [
    { selector: "[data-state=error]", label: "Error" },
    { selector: "[data-state=success]", label: "Success" },
  ],
  initialProps: ["id", "class", "state", "action"],
  props: {
    ...props,
    action: {
      type: "resource",
      control: "resource",
      description:
        "The URI of a program that processes the information submitted via the form.",
      required: false,
      generatedProps: ["method"],
    },
  },
};