Skip to content

A low-level toolkit to create floating elements. Tooltips, popovers, dropdowns, and more

License

Notifications You must be signed in to change notification settings

YonLJ/floating-ui

 
 

Repository files navigation

Floating UI

Popper is now Floating UI! For Popper v2, visit its dedicated branch. For help on migrating, check out the Migration Guide.

Floating UI is a small library that helps you create "floating" elements such as tooltips, popovers, dropdowns, and more.

It offers two main features:

  1. Anchor positioning: Anchor a floating element (such as a tooltip) to another element (such as a button) while simultaneously ensuring it stays in view as best as possible by avoiding collisions. This feature is available for all platforms.
  2. User interactions for React: Hooks and components for composing interactions to create accessible floating UI components.

Why