🔹 Feature: Copilot UX Components in SPFx
🔹 What It Does: SharePoint Framework components that render your own interactive UI — forms, charts, approval cards — directly inside the Microsoft 365 Copilot chat.
Continuation of previous post series on Microsoft 365 Copilot and Work IQ innovations.
Why This Matters
🔸 Copilot’s default response is plain text. UX components let you deliver a rich, branded, interactive experience in the conversation — users complete tasks without leaving Copilot.
🔸 Think forms, approval cards, dashboards, status grids — inline and actionable, powered by your business logic.
🔸 Built with SPFx tools your SharePoint devs already know — no new runtime or SDK required.
What It Is Giving You
✅ Rich UI Inside Copilot: Agent calls your tool → your React/TypeScript component renders inline with buttons, inputs, charts, and cards. Users interact, submit, and finish without leaving chat.
✅ Two Display Modes: Inline for compact in-chat UI; Fullscreen for interactive canvases via requestDisplayModeAsync(‘fullscreen’).
✅ Multiple Tools per Package: A single .sppkg can expose multiple tools (status, reporting, approvals) under one lifecycle.
✅ Parameterized Initial Rendering: Declarative agent passes parameters; components read them from this.properties to adapt on first render.
✅ Ship Logic + UI Together: Single solution contains declarative agent (manifest, JSON, instructions, ai-plugin.json) AND the Copilot UX components.
✅ Automatic Hosting via SharePoint App Catalog: Include client-side assets; SharePoint hosts JS/CSS on Microsoft 365 CDN — no extra infrastructure.
✅ No Separate Agent Publishing: Upload .sppkg → add to Teams → agent auto-syncs to tenant catalog. Updates follow the app lifecycle.
✅ Starter Templates: Minimal, No Framework, or React — scaffold with SPFx generator.
✅ Multi-Surface Reuse: Same component can be a SharePoint web part, Teams tab, and Copilot UX component.
✅ Local Testing via Copilot Workbench: heft start –nobrowser + navigate to …/copilotworkbench.aspx for fast iteration.
✅ Multi-Tenant Portability: Standard .sppkg works across tenants — upload, enable, done.
✅ Full Declarative Agent Control: Edit declarativeAgent.json for knowledge, conversation starters, and actions.
🌐 https://learn.microsoft.com/en-us/sharepoint/dev/spfx/copilot/overview-copilot-apps
🌐 Build your first UX component: https://learn.microsoft.com/en-us/sharepoint/dev/spfx/copilot/get-started/build-your-first-copilot-app
🌐 Sample repo: https://github.com/pnp/spfx-copilot-apps