UNPKG

@heroui/form

Version:

A form is a group of inputs that allows users submit data to a server and supports field validation errors.

20 lines (17 loc) 602 B
"use client"; import { Form } from "./chunk-ICU6NNET.mjs"; // src/form.tsx import { useProviderContext } from "@heroui/system"; import { forwardRef } from "react"; import { jsx } from "react/jsx-runtime"; var Form2 = forwardRef(function Form3(props, ref) { var _a, _b; const globalContext = useProviderContext(); const validationBehavior = (_b = (_a = props.validationBehavior) != null ? _a : globalContext == null ? void 0 : globalContext.validationBehavior) != null ? _b : "native"; return /* @__PURE__ */ jsx(Form, { ...props, ref, validationBehavior }); }); export { Form2 as Form };