Documents / @faasjs/ant-design / FormCommonProps
Type Alias: FormCommonProps<Values, ExtendItemProps>
FormCommonProps<
Values,ExtendItemProps> =Omit<AntdFormProps<Values>,"onFinish"|"children"|"initialValues"> &object
Shared props used by both Faas-backed and manually-submitted forms.
Type Declaration
beforeItems?
optionalbeforeItems?:JSX.Element|JSX.Element[]
Elements rendered before the form items.
children?
optionalchildren?:ReactNode
Arbitrary children rendered between items and the submit button.
extendTypes?
optionalextendTypes?:ExtendTypes
Custom type renderers keyed by item type.
footer?
optionalfooter?:JSX.Element|JSX.Element[]
Elements rendered after the submit button.
initialValues?
optionalinitialValues?:Partial<Values>
Initial field values for the form.
items?
optionalitems?: (ExtendItemPropsextendsExtendFormItemProps?ExtendItemProps|FormItemProps:FormItemProps|JSX.Element)[]
Item definitions rendered as form fields.
submit?
optionalsubmit?:false|FormSubmitProps
Submit button config, or false to hide the built-in submit button.
Type Parameters
Values
Values extends Record<string, any>
Form values shape.
ExtendItemProps
ExtendItemProps extends ExtendFormItemProps = ExtendFormItemProps
Additional item prop shape accepted by items.