Skip to main content

ListFormAttachments

@spartanfx/react v1.2.2


@spartanfx/react / spfx / ListFormAttachments

Variable: ListFormAttachments

const ListFormAttachments: React.FunctionComponent<IListFormAttachmentsProps>;

React component for rendering and managing list item attachments in a SharePoint form.

This component:

  • Displays existing attachments (for edit forms)
  • Supports new file uploads via <input type="file" />
  • Allows removing existing or newly added attachments
  • Integrates with the list form context for managing attachment state

Files are not persisted until saveListFormAttachment() is called, typically on form save.

Param​

props

Props controlling rendering behavior and disabled state.

Example​

<ListFormAttachments disabled={isReadOnly} />