@apptane/react-ui-form
Version:
Form layout component in Apptane React UI framework
32 lines (31 loc) • 1.59 kB
TypeScript
import { FieldLabel } from "@apptane/react-ui-input";
import { FormProps } from "./Form.types.js";
import FormField from "./FormField.js";
import FormGroup from "./FormGroup.js";
/**
* `Form` layout.
*/
declare function Form({ children, width, spacing, disabled, submit, margin, marginTop, marginRight, marginBottom, marginLeft, m, mt, mr, mb, ml, }: FormProps): import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
declare namespace Form {
var displayName: string;
var propTypes: {
width: import("prop-types").Requireable<string | number>;
spacing: import("prop-types").Requireable<number>;
disabled: import("prop-types").Requireable<boolean>;
submit: import("prop-types").Requireable<(...args: any[]) => any>;
margin: import("prop-types").Requireable<string | number>;
marginTop: import("prop-types").Requireable<string | number>;
marginRight: import("prop-types").Requireable<string | number>;
marginBottom: import("prop-types").Requireable<string | number>;
marginLeft: import("prop-types").Requireable<string | number>;
m: import("prop-types").Requireable<string | number>;
mt: import("prop-types").Requireable<string | number>;
mr: import("prop-types").Requireable<string | number>;
mb: import("prop-types").Requireable<string | number>;
ml: import("prop-types").Requireable<string | number>;
};
var Label: typeof FieldLabel;
var Field: typeof FormField;
var Group: typeof FormGroup;
}
export default Form;