Teams / SharePoint · Community sample

Content Block

A dynamic SharePoint Framework web part for displaying content in flexible two-panel layouts with rich text editing, drag-and-drop reordering, and SharePoint image uploads.

Teams tabWeb partReactSPFx 1.21.1
Content Block web part demo showing drag-and-drop reordering and rich text editing

The idea behind the sample

A dynamic SharePoint Framework (SPFx) web part that displays content in a flexible two-panel layout with comprehensive rich text editing capabilities. Features include drag-and-drop reordering with @dnd-kit, active/inactive content management for visibility control, direct image uploads to SharePoint SiteAssets, and three configurable layouts (50/50, 75/25, 25/75). The custom rich text editor provides full HTML formatting, table insertion, image management with SharePoint integration, source code editing mode, and content sanitization for security. Perfect for creating engaging content sections, feature comparisons, or structured information displays on SharePoint pages.

Make it your own

Start with the author's setup instructions, explore the implementation, and adapt the pattern to your environment. Sample code stays in its original repository, together with its requirements, license and contribution history.

Read the source documentation

A closer look

Keep exploring

Keep the ideas flowing

Back to all possibilities
Microsoft 365 and Power Platform Community Contributor badge

Sharing is caring.

Share what you know.

Contribute a sample, improve the docs or help someone get started. Sample contributors can opt in to the PnP Recognition Program and share their community contributor badge.

Have something to show? Sign up for a community call demo. Fill in the form and we'll arrange a slot based on your availability.