sp-dev-fx-webparts/samples/react-company-stories/README.md

2.9 KiB

Company Stories Webpart

Summary

This web part allows you to add images to a SharePoint List, and renders them with a UX very similar to Instagram Stories (or Twitter Reels, or [Place your Social network here]). It is a way to engage employees, showing relevant content in a well-known visual appearance.

react-company-stories

Used SharePoint Framework Version

version

Applies to

Get your own free development tenant by subscribing to Microsoft 365 developer program

Prerequisites

  • A SharePoint list called "Stories" with the following fields:
    • Image: image field type
    • Content: multi-line field type
    • Author: Person field type stories-list
  • Permission User.ReadBasic.All to the Graph API

Solution

Solution Author(s)
react-company-stories Luis Mañez (MVP, ClearPeople, @luismanez)

Version history

Version Date Comments
1.0 March 31, 2021 Initial release

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.


Minimal Path to Awesome

  • Configure SharePoint permissions to Graph API (see Prerequisites). Suggest you to use the Microsoft 365 CLI
  • Clone this repository
  • Ensure that you are at the solution folder
  • In the command-line run:
    • npm install
    • gulp serve --nobrowser
  • Add the web part to the SharePoint Workbench (same Site where the List was created)

Features

This web part illustrates the following concepts:

References

About SPFx: