Floating UI screenshot

Floating UI

Author Avatar Theme by Floating ui
Updated: 15 Jan 2026
32319 Stars

A JavaScript library to position floating elements and create interactions for them.

Categories

Overview

Floating UI, formerly known as Popper, is a robust library designed to create “floating” elements such as tooltips, popovers, and dropdowns. It provides developers with the tools needed to manage these elements effectively, ensuring they remain visible and user-friendly across various platforms and layouts. With a focus on accessibility and user interactions, Floating UI simplifies the complexities often associated with floating elements in UI design.

The library tackles challenges like collision avoidance and viewport boundaries by offering a set of features that make it easier to position floating elements accurately. Whether you’re using vanilla JavaScript, React, or other frameworks, Floating UI has got you covered, delivering solutions for creating responsive and accessible floating components.

Features

  • Anchor Positioning: Ensures that floating elements like tooltips remain visible while attached to a specific UI element, minimizing collision issues.

  • User Interactions for React: Provides special hooks and components designed for React applications, enabling easy creation of accessible floating components.

  • Cross-Platform Compatibility: Supports a variety of platforms including vanilla JavaScript, React, Vue, and even custom platforms such as Canvas or WebGL.

  • Development Testing Tools: Offers a testing playground for visual testing, allowing developers to ensure that their floating elements behave as expected across different state combinations.

  • Accessibility Considerations: Focuses on creating components that are not only functional but also accessible, helping to meet various user needs.

  • Modular and Extensible: Written in TypeScript, with a structure that supports contributions and allows for further customization and development.

  • Comprehensive Documentation: Comes with a detailed tutorial and API documentation to help developers get started quickly with building floating elements.