Create an image gallery with Adaptive Cards

lee sharepoint 85 Reputation points
2024-05-17T00:26:19.7+00:00

I want to create a gallery to display images. It will auto adjust image size based on page. And I will store the images in a library. The gallery need to get the images from sharepoint library. And the page should like following pic. Could spfx implement this feature?

User's image

Microsoft 365 and Office | SharePoint | Development
Microsoft 365 and Office | SharePoint | For business | Windows
{count} votes

Answer accepted by question author
  1. RaytheonXie_MSFT 40,496 Reputation points Microsoft External Staff
    2024-05-17T06:24:34.3733333+00:00

    Hi @lee sharepoint,

    I would recommend you to use react-adaptive-cards-image-gallery. Adaptive cards are great fit for Bot, however they can be effectively used with SPFx to render the content. This web part helps to display the image gallery from SharePoint list.You could refer to following document

    https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-adaptive-cards-image-gallery


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.