Rust Floating UI Logo

Introduction

Rust Floating UI is a Rust port of Floating UI.

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

It provides a toolkit of positioning features that let you robustly anchor an absolutely-positioned floating element next to a given reference element. For example, a popover floats next to and remains anchored to its triggering button, even while the page scrolls.

It also provides features to avoid collisions with the viewport, as absolute positioning often leads to unwanted overflow depending on the location of the positioning reference.

Frameworks

Rust Floating UI is available for the following frameworks:

The following frameworks are under consideration:

See Frameworks for documentation for each framework.

Examples

See Examples.

License

This project is available under the MIT license.

Rust For Web

The Rust Floating UI project is part of the Rust For Web.

Rust For Web creates and ports web UI libraries for Rust. All projects are free and open source.