/*! * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved. * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") * * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * * See the License for the specific language governing permissions and limitations under the License. */ import { FormEventHandler, ReactElement } from "react"; import type { HtmlProps } from "./HtmlProps.js"; import { Button } from "./Buttons/Button.js"; import { Callout } from "./Callout.js"; import { FieldComponentProps } from "./FieldComponentProps.js"; export declare const formEncodingTypeValues: readonly ["application/x-www-form-urlencoded", "application/json", "multipart/form-data", "text/plain"]; export declare const formAutoCompleteTypeValues: readonly ["on", "off"]; export declare const formMethodValues: readonly ["post", "get", "dialog"]; export type FormProps = { /** * A Callout indicating a Form-wide error or status update. */ alert?: ReactElement; /** * Indicates whether input elements can by default have their values automatically completed by the browser. * `autocomplete` attributes on form elements override it on
*/ autoCompleteType?: (typeof formAutoCompleteTypeValues)[number]; /** * The Field or FieldSet components within the Form */ children: ReactElement | Array; /** * Secondary text displayed below the form heading, providing context for the form's purpose. */ description?: string; /** * If the value of the method attribute is post, enctype is the MIME type of the form submission. This value can be overridden by formenctype attributes on