Skip to main content
Version: 1.1.0

ListForm

@spartanfx/react v1.1.0


@spartanfx/react / spfx / ListForm

Variable: ListForm

const ListForm: ListFormFunctionComponent;

Renders a SharePoint list form UI, using a provided IListFormContext.

This component manages field rendering, loading state, and provides form context to its children via React Context.

Deprecated

DEPRECATED - This component is deprecated and will be removed in a future version.

Replacement: Use DataForm component instead.

DataForm provides the same functionality without direct SPFx dependencies. For SharePoint integration, use the useSharePointDataForm hook with DataForm.

It is the core container for all field components (e.g., ListForm.Field) and SharePoint form logic.

Example

<ListForm listFormContext={formContext}>
<ListForm.Field fieldInternalName="Title" />
<ListForm.Field fieldInternalName="Category" />
</ListForm>