Skip to content

feat(react-headless-components-preview): add Provider component#36000

Open
dmytrokirpa wants to merge 1 commit intomicrosoft:masterfrom
dmytrokirpa:feat/headless-provider
Open

feat(react-headless-components-preview): add Provider component#36000
dmytrokirpa wants to merge 1 commit intomicrosoft:masterfrom
dmytrokirpa:feat/headless-provider

Conversation

@dmytrokirpa
Copy link
Copy Markdown
Contributor

@dmytrokirpa dmytrokirpa commented Apr 17, 2026

This pull request introduces a new headless Provider component to the react-headless-components-preview package, enabling consumers to wrap their applications with Fluent UI context providers without styling concerns. The addition includes the component implementation, related hooks, type definitions, rendering logic, context value utilities, and comprehensive tests. It also updates dependencies to support the new functionality.

New Provider component and related APIs:

  • Added a headless Provider component (Provider.tsx) that wraps required Fluent UI context providers, along with its hook (useProvider), rendering logic (renderProvider), context value utilities (useProviderContextValues), and type definitions (Provider.types.ts). [1] [2] [3] [4] [5]
  • Exposed the Provider, useProvider, renderProvider, and related types in the package's main entry points (index.ts, src/Provider.ts, src/components/Provider/index.ts). [1] [2] [3]

Testing:

  • Added unit tests for the Provider component, covering default rendering and custom directionality (dir prop).

API documentation:

  • Updated the API report to include the new Provider component, its props, state, and hooks. [1] [2] [3] [4]

Dependency updates:

  • Added @fluentui/react-provider and @fluentui/react-tabster as dependencies to support the new Provider implementation. [1] [2]

@github-actions
Copy link
Copy Markdown

Pull request demo site: URL

@dmytrokirpa dmytrokirpa force-pushed the feat/headless-provider branch from fad19e2 to f70c577 Compare April 19, 2026 13:17
@dmytrokirpa dmytrokirpa marked this pull request as ready for review April 19, 2026 13:19
@dmytrokirpa dmytrokirpa requested a review from a team as a code owner April 19, 2026 13:19
@github-actions
Copy link
Copy Markdown

📊 Bundle size report

Package & Exports Baseline (minified/GZIP) PR Change
react-headless-components-preview
react-headless-components-preview: entire library
64.854 kB
19.302 kB
66.827 kB
19.834 kB
1.973 kB
532 B

🤖 This report was generated against 3d2d9bf0e07e05f2320e5400efe6c01759426534

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant