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.
Hanging evil eye amulet
Installation
Add the component directly to your repository using shadcn CLI:
npx shadcn@latest add Surajmaurya1/easyui/evil-eye
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| maxRotation | number | 13 | Maximum rotation in degrees at full pointer offset |
| stiffnessX | number | 55 | Pointer X spring stiffness (higher = snappier follow) |
| stiffnessY | number | 45 | Pointer Y spring stiffness |
| damping | number | 9 | Spring damping (higher = less swing overshoot) |
| caption | string | undefined | Optional screen-reader caption for the amulet |
| className | string | undefined | Additional Tailwind classes merged into the container |