Socket
Book a DemoInstallSign in
Socket

@fluentui/react-positioning

Package Overview
Dependencies
Maintainers
9
Versions
1192
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fluentui/react-positioning

A react wrapper around Popper.js for Fluent UI

latest
Source
npmnpm
Version
9.20.10
Version published
Weekly downloads
177K
-19.27%
Maintainers
9
Weekly downloads
 
Created
Source

@fluentui/react-positioning

A React utilities built on top of Floating UI for positioning elements in the DOM.

Usage

import * as React from 'react';
import { usePositiniong } from '@fluentui/react-positioning';

const PopupExample: React.FC = ({ children }) => {
  const { targetRef, containerRef } = usePositiniong();
  const [open, setOpen] = React.useState(false);

  const onClick = () => setOpen(s => !s);
  return (
    <>
      <button ref={targetRef} onClick={onClick}>
        Toggle popup
      </button>
      {open && <div ref={containerRef}>{children}</div>}
    </>
  );
};

FAQs

Package last updated on 11 Nov 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