@joihouse/magnet-cursor-vue

Vue 3 components, composables and the v-magnet directive for the magnet-cursor engine. Nuxt/SSR safe.
230 1
Install
npm install @joihouse/magnet-cursor-vue
Latest Version:0.1.2
Vue:3
License:MIT
Last Updated:Oct 5, 2026
Links: GitHub  ·  npm
Maintainer: joihouse

@joihouse/magnet-cursor-vue

Vue 3 bindings for magnet-cursor: a trailing custom cursor and magnetic hover effects. SSR safe, works in Nuxt without extra setup.

pnpm add @joihouse/magnet-cursor-vue
<script setup lang="ts">
import { MagnetCursor, vMagnet } from '@joihouse/magnet-cursor-vue'
import '@joihouse/magnet-cursor-vue/style.css'
</script>

<template>
  <MagnetCursor color="#000" />

  <button v-magnet>Hover me</button>
  <button v-magnet="{ target: 'svg', strength: 0.5 }">
    <svg><!-- only the icon moves --></svg>
  </button>
</template>

Or register globally:

import { MagnetCursorPlugin } from '@joihouse/magnet-cursor-vue'

createApp(App).use(MagnetCursorPlugin)

Exports: <MagnetCursor>, <Magnet>, <GravitationalLiquid>, vMagnet, vGravitationalLiquid, MagnetCursorPlugin, useMagnetCursor(), useMagnet(), useGravitationalLiquid(), plus everything from @joihouse/magnet-cursor-core.

Requires Vue ^3.3.0.

Full documentation →

MIT © joihouse

Related Packages

fullpage-nuxt

Nuxt module for fullpage-vue plugin

1,600 24
vuejs-typing

VueJs-Typing Vue Typing is a lightweight directive compatible with both Vue 2 an...

1,445 0
@sparing-software/v-clamp

Vue directive plugin for text truncate

3,655 15
nuxt-agent-md

Generate AGENTS.md with Nuxt documentation for AI coding agents

2,145
@eduvia-app/nuxt-can

Nuxt directives (`v-can`, `v-cannot`) to layer permissions without touching busi...

1,214 0

Version History

Version Released Vue License
0.1.2 ^3.3.0 MIT
0.1.1 ^3.3.0 MIT
0.1.0 ^3.3.0 MIT