Skip to main content
Version: 2.1.4

ListFormAttachments

3p-core v2.1.4


3p-core / 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 controlling rendering behavior and disabled state.

Example

<ListFormAttachments disabled={isReadOnly} />