floating-ui-vue-skilld

Position floating UI elements with Vue 3 and @floating-ui/vue.

174|8|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/harlan-zw/vue-ecosystem-skills --skill floating-ui-vue-skilld
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: floating-ui-vue-skilld
Source: https://github.com/harlan-zw/vue-ecosystem-skills/tree/main/skills/floating-ui-vue-skilld
Command: npx skills add https://github.com/harlan-zw/vue-ecosystem-skills --skill floating-ui-vue-skilld

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @floating-ui/vue, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the complex task of positioning UI elements like tooltips, dropdowns, and popovers in Vue applications, ensuring they are always visible and correctly anchored.

Core Features & Use Cases

  • Precise Positioning: Accurately places floating elements relative to reference elements, handling scrolling, viewport boundaries, and element resizing.
  • Interactive Elements: Enables the creation of accessible and dynamic UI components like tooltips, menus, and dialogs.
  • Use Case: Quickly implement a custom dropdown menu for a Vue project that correctly positions itself below the trigger button, flips to the top if space is limited, and shifts to stay within the viewport boundaries.

Quick Start

Use the floating-ui-vue-skilld to position a tooltip element relative to a button element.

Frequently Asked Questions about floating-ui-vue-skilld

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I position Vue UI elements like tooltips and dropdowns accurately?

To position Vue UI elements accurately, you need a composable that manages anchor positioning relative to reference elements. This Skill provides precise placement using @floating-ui/vue, handling scrolling, viewport boundaries, and element resizing for dynamic components.

What's the best way to prevent dropdown menus from overflowing the viewport in Vue 3?

Preventing dropdown overflow requires middleware for collision detection. This Skill uses @floating-ui/vue middleware to flip dropdowns to the top if space is limited and shift them to stay within viewport boundaries automatically.

Does this floating UI composable require a specific version of Vue?

Yes, this floating UI composable requires Vue 3 and the @floating-ui/vue package for positioning logic and event handling. It is built specifically as a Vue 3 composable to manage interactions like tooltips and popovers.

How do floating UI elements handle automatic updates during scrolling and resizing?

Floating UI elements handle automatic updates by continuously recalculating their position during scrolling and element resizing. This Skill manages these complex interactions to ensure tooltips and dropdowns remain correctly anchored and visible.

Can I build accessible popovers and dialogs with this Vue positioning tool?

Yes, you can build accessible popovers and dialogs. This Skill enables the creation of accessible and dynamic UI components by providing precise anchor positioning and accessibility integrations for interactive elements.

Why does my Vue tooltip detach from its trigger button when scrolling?

A Vue tooltip detaches from its trigger when automatic position updates are not configured. This Skill provides continuous event handling and automatic updates to keep floating elements anchored correctly during scrolling.