Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@fluentui-contrib/react-headless-provider

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fluentui-contrib/react-headless-provider

A package that provides a headless provider, a replacement in some cases for `FluentProvider` from `@fluentui/react-components`.

latest
Source
npmnpm
Version
1.0.5
Version published
Maintainers
1
Created
Source

@fluentui/react-headless-provider

A package that provides a headless provider, a replacement in some cases for FluentProvider from @fluentui/react-components.

HeadlessFluentProvider does not render additional any DOM elements, only applies React Contexts needed for components from @fluentui/react-components to render properly.

Following features work:

  • rendering into different documents i.e. targetDocument prop
  • customStyleHooks_unstable & overrides_unstable props

Following features don't work:

  • scoped theming, in this scenario theming should be configured globally or separately
  • scoped "dir", in this scenario text direction should be configured globally or separately
  • polyfill for :focus-visible (useFocusVisible() from @fluentui/react-tabster) should be initialized separately

Designed to be used with createCSSRuleFromTheme(), see for context microsoft/fluentui#21290.

Install

yarn add @fluentui-contrib/react-headless-provider
# or
npm install @fluentui-contrib/react-headless-provider

Usage

import * as React from 'react';
import { HeadlessFluentProvider } from '@fluentui-contrib/react-headless-provider';

export function RootContainer(props) {
  const { targetDocument } = props;

  return <HeadlessFluentProvider targetDocument={targetDocument}>{/* children */}</HeadlessFluentProvider>;
}

FAQs

Package last updated on 01 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts