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.

414 B
Raw Blame
import { forwardRef, type ElementRef, type ComponentProps } from "react";

export const defaultTag = "form";

/** @deprecated Use an Element with tag `form` for native browser behavior. */
export const Form = forwardRef<
  ElementRef<typeof defaultTag>,
  ComponentProps<typeof defaultTag>
>(({ children, ...props }, ref) => (
  <form {...props} ref={ref}>
    {children}
  </form>
));

Form.displayName = "Form";