FormProps
interface FormProps extends [React.FormHTMLAttributes]<HTMLFormElement> {
action?: string;
method?: FormMethod;
onSubmit?: React.FormEventHandler<HTMLFormElement>;
relative?: RelativeRoutingType;
reloadDocument?: boolean;
replace?: boolean;
}§Properties
§
method?: FormMethod
[src]The HTTP verb to use when the form is submit. Supports "get", "post", "put", "delete", "patch".
§
onSubmit?: React.FormEventHandler<HTMLFormElement>
[src]A function to call when the form is submitted. If you call
event.preventDefault()
then this form will not do anything.
§
relative?: RelativeRoutingType
[src]Determines whether the form action is relative to the route hierarchy or the pathname. Use this if you want to opt out of navigating the route hierarchy and want to instead route based on /-delimited URL segments