UNPKG

@react-md/form

Version:

This package is for creating all the different form input types.

16 lines (15 loc) 702 B
import type { FormHTMLAttributes } from "react"; export interface FormProps extends FormHTMLAttributes<HTMLFormElement> { /** * Boolean if the form should no longer prevent default submit behavior. If * you enable this prop you should honestly just use a `<form>` element * instead */ disablePreventDefault?: boolean; } /** * This is probably one of the least useful components available as it doesn't * do much styling or logic. All this form component will do is add basic flex * behavior and prevent the default form submit behavior. */ export declare const Form: import("react").ForwardRefExoticComponent<FormProps & import("react").RefAttributes<HTMLFormElement>>;