workflowstacks

The marketplace for AI skills that launch offers, rank in AI search, and automate operations. No coding required.

๐•โšก๐Ÿ’ฌ

Marketplace

  • Browse Skills
  • AI Agents
  • Claude Skills
  • MCP Servers
  • Prompts

Solutions

  • For Founders
  • For Agencies
  • For Ecommerce
  • Agent Builder
  • Starter Packs
  • Playbooks

Learn

  • How It Works
  • What Are Skills
  • What Are Agents
  • What Is MCP
  • For Creators
  • Submit a Tool
  • Security

Company

  • Become a Creator
  • About
  • Enterprise
  • API Docs
  • Terms
  • Privacy
  • Support
Compatible with
๐Ÿค–ChatGPT
โœจClaude
๐Ÿ’ŽGemini
๐Ÿ›๏ธShopify
๐Ÿ”Ahrefs
๐Ÿ“ŠSheets
๐Ÿ’ฌWhatsApp
๐Ÿ“ฑMeta Ads
+50 moreCreator program โ†’

ยฉ 2026 WorkflowStacks. All rights reserved.

TermsPrivacySupport
ai-agent

floating-ui: Easy Element Positioning

Get precise control over floating elements with floating-ui, a TypeScript library for startup founders. 33k+ GitHub stars
32,646 stars1,683 forksTypeScriptQuality 8/10Updated 7/3/2026100% free ยท open source
What it does

Floating-ui is a TypeScript library that provides precise control over floating elements, such as tooltips, popovers, and dropdowns, for web applications.

Install / run
npm install @floating-ui/dom
When to use it
  • โ€ขWhen developing custom UI components that require precise positioning and overlap management
  • โ€ขWhen integrating third-party libraries that require floating elements, such as date pickers or autocomplete inputs
  • โ€ขWhen creating complex, interactive web applications that require precise control over layout and positioning
Quick start
  1. 1Import the library in your TypeScript file: `import { computePosition } from '@floating-ui/dom';`
  2. 2Create a reference element, such as a button, and a floating element, such as a tooltip
  3. 3Use the `computePosition` function to calculate the position of the floating element: `const { x, y } = computePosition(referenceElement, floatingElement);`
  4. 4Update the styles of the floating element to position it correctly: `floatingElement.style.top = `${y}px`; floatingElement.style.left = `${x}px`;`
  5. 5Use the `update` method to re-calculate the position when the reference element changes: `computePosition(referenceElement, floatingElement).then(({ x, y }) => { ... })`
Ready-to-paste prompt
Compute the position of a tooltip element relative to a button element: `const { x, y } = computePosition(document.querySelector('#button'), document.querySelector('#tooltip'), { placement: 'top' })`
Heads up: Make sure to include the `@floating-ui/dom` package in your TypeScript configuration, as it requires the `dom` package to be installed and imported correctly, otherwise, you may encounter errors related to missing types or modules.
Saves to your device

Topics

dropdown
hacktoberfest
popover
popovers
position
positioning
positioning-engine
tooltip
tooltip-position
What's inside โ€” free to inspect
No purchase needed

Read the entire source before you build โ€” unlike paid marketplaces that hide it behind a buy button.

10
top-level files
6
folders
41.0M
repo size
MIT
license
Key files
eslint.config.mjs
package.json
README.md
File tree
.changeset/
.github/
config/
extension/
packages/
website/
.gitignore
.nvmrc
CODE_OF_CONDUCT.md
eslint.config.mjs
LICENSE
package.json
pnpm-lock.yaml
pnpm-workspace.yaml
README.md
turbo.json
Quick Actions
Details
Creator
floating-ui
Language
TypeScript
Category
ai-agent
Published
3/29/2016

Are you the creator of this tool? Claim your listing โ†’ and earn 85% of every sale.

Related skills

More ai-agent tools founders pair with this one.

ai-agentโ˜… 512,463
build-your-own-x: Learn by Recreating
Improve programming skills by rebuilding tech from scratch. For startup founders and programmers.
ai-agentโ˜… 450,961
Learn to code with freeCodeCamp
Get free programming education with freeCodeCamp, for startup founders and beginners.
ai-agentโ˜… 439,771
Public-apis: Free API Access
Get free APIs for development. For startup founders and developers.
ai-agentโ˜… 390,947
Free Programming Books
Discover free programming books for founders and developers. Learn with free-programming-books.
ai-agentโ˜… 350,624
coding-interview-university: Learn to Code
Get a complete study plan to become a software engineer, for startup founders, with 351k+ GitHub stars
ai-agentโ˜… 297,550
Selfhosted Control with awesome-selfhosted
Host your own network services and web apps. For founders seeking privacy and control.