Getting Started
Floating UI Svelte is a library that helps you create floating elements such as tooltips, popovers, dropdowns, and more.
Support
Supports Svelte v5 projects created with SvelteKit, Vite/Svelte, or Astro.
Install
To install Floating UI, use your package manager of choice.
Usage
Making elements "float
The following styles must be applied to any and all floating elements. We recommend using a class as shown below. Note that Floating UI does not take an opinionated stance on z-index stacking.