Pointer

A description for Pointer component.

motion-svruned

Animated Pointer

Animated pointer

Colored Pointer

A custom pointer with different color

Custom Shape

A pointer with a custom SVG shape

Emoji Pointer

Using an emoji as a custom pointer

Installation

pnpm dlx shadcn-svelte@latest add https://sv-animations.vercel.app/r/pointer.json

Usage

<script lang="ts">	import { Pointer } from "#lib/components/magic/pointer/index.js";</script>
<div class="relative h-48 rounded-xl border p-8">	Move your pointer here	<Pointer /></div>

Props

Pointer

A component for Pointer.

NameTypeDefaultDescription
classClassValue""Additional CSS classes to apply