RE

React

@floating-ui/react

Floating UI for React

Utilities
tooltip
popover
dropdown
menu
popup
positioning
react
react-dom
@floating-ui/react
Utilities
Stars
1.2k
Weekly
20M
Open issues
15
Bundle
~15 kB

Installation

npm install @floating-ui/react

Code example

import { useReact } from "@floating-ui/react";

export function Example() {
  const value = useReact();
  return <p>{String(value)}</p>;
}

Pros & cons

Pros

  • Actively maintained by atomiks
  • 20M weekly downloads. Battle tested
  • First-class TypeScript definitions
  • MIT licensed

Considerations

  • Adds roughly ~15 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • Not supported in React Native
  • 15 open issues on GitHub

FAQs

Alternatives & similar libraries