FaasJS
Home
  • Guide
  • Documents
  • Templates
  • Changelog
  • Ecosystem

    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security
Home
  • Guide
  • Documents
  • Templates
  • Changelog
  • Ecosystem

    • Docker Images
  • Github
  • Contributing
  • Sponsor
  • Security

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?

optional beforeItems?: JSX.Element | JSX.Element[]

Elements rendered before the form items.

children?

optional children?: ReactNode

Arbitrary children rendered between items and the submit button.

extendTypes?

optional extendTypes?: ExtendTypes

Custom type renderers keyed by item type.

footer?

optional footer?: JSX.Element | JSX.Element[]

Elements rendered after the submit button.

initialValues?

optional initialValues?: Partial<Values>

Initial field values for the form.

items?

optional items?: (ExtendItemProps extends ExtendFormItemProps ? ExtendItemProps | FormItemProps : FormItemProps | JSX.Element)[]

Item definitions rendered as form fields.

submit?

optional submit?: 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.