SharePointOffice

Supporting section backgrounds in your web parts

These samples show how to implement support for section backgrounds in your web parts.

View on GitHub
  • References

    Build your first SharePoint client-side web part

    Client-side web parts are client-side components that run in the context of a SharePoint page. Client-side web parts can be deployed to SharePoint environments that support the SharePoint Framework. You can also use modern JavaScript web frameworks, tools, and libraries to build them.

    Supporting section backgrounds

    Starting with SharePoint Framework v1.8, web parts can be made aware of any section backgrounds and use these colors to improve the appearance of a web part when hosted in a section with a different background.