Evil Eye

A hanging navy amulet disc with concentric sky-blue and white rings that swings with realistic inertia in response to the pointer, painted as a layered SVG and driven by a single spring pipeline.

Installation

Add the component directly to your repository using shadcn CLI:

npx shadcn@latest add Surajmaurya1/easyui/evil-eye

API Reference

PropTypeDefaultDescription
maxRotationnumber13Maximum rotation in degrees at full pointer offset
stiffnessXnumber55Pointer X spring stiffness (higher = snappier follow)
stiffnessYnumber45Pointer Y spring stiffness
dampingnumber9Spring damping (higher = less swing overshoot)
captionstringundefinedOptional screen-reader caption for the amulet
classNamestringundefinedAdditional Tailwind classes merged into the container