Skip to main content
Version: 1.1.0

LibraryAttachments

@spartanfx/react v1.1.0


@spartanfx/react / spfx / LibraryAttachments

Variable: LibraryAttachments

const LibraryAttachments: React.FunctionComponent<ILibraryAttachmentsProps>;

Renders a list of attachments from a SharePoint document library.

Supports uploading new files, renaming before upload, soft deletion, and filtering attachments by parent item ID and optional section.

Example

<LibraryAttachments
libraryName="ProjectDocuments"
lookupFieldName="ProjectId"
sectionFieldName="Section"
section="Planning"
disabled={false}
allowMultiple
/>