Nimbu Mirchi
A hanging lemon-and-green-chilli charm that swings with realistic inertia in response to the pointer, built from layered physical springs rather than a single rigid illustration.
Hanging nimbu-mirchi charm
Installation
Add the component directly to your repository using shadcn CLI:
npx shadcn@latest add Surajmaurya1/easyui/nimbu-mirchi
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 charm |
| className | string | undefined | Additional Tailwind classes merged into the container |