Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@allindevelopers/vue-floating-ui

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@allindevelopers/vue-floating-ui

Vue implementation of @floating-ui/react-dom

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
26
increased by85.71%
Maintainers
1
Weekly downloads
 
Created
Source

@allindevelopers/vue-floating-ui

Vue implementation of @floating-ui/react-dom

Same core documentation applies.

Install

npm install @allindevelopers/vue-floating-ui

Usage

<script setup lang="ts">
import { useFloating, autoPlacement } from "./vue-floating-ui";

const { x, y, reference, floating, strategy } = useFloating({
	placement: "bottom",
	middleware: [autoPlacement()],
});
</script>

<template>
	<button ref="reference">Button</button>
	<div
		ref="floating"
		:style="{
			position: strategy,
			top: y ? `${y}px` : '',
			left: x ? `${x}px` : '',
		}"
	>
		Tooltip
	</div>
</template>

Vue 3 + Typescript + Vite

This template should help get you started developing with Vue 3 and Typescript in Vite. The template uses Vue 3 <script setup> SFCs, check out the script setup docs to learn more.

Type Support For .vue Imports in TS

Since TypeScript cannot handle type information for .vue imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in .vue imports (for example to get props validation when using manual h(...) calls), you can enable Volar's .vue type support plugin by running Volar: Switch TS Plugin on/off from VSCode command palette.

Keywords

FAQs

Package last updated on 21 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc