Receipt Indian Rupee
An animated receipt icon with an Indian rupee symbol. On hover, the receipt outline and rupee strokes draw themselves in sequence, and the component can also be driven programmatically through a ref.


shadcn add · no workarounds · theme neutral (none shipped)Installation
Usage
import { ReceiptIndianRupeeIcon } from "@/components/ui/receipt-indian-rupee";export function Example() { return <ReceiptIndianRupeeIcon size={28} className="text-foreground" />;}- Showing payment, invoice, bill, or expense actions in an Indian-currency (INR) context, such as a checkout or billing screen.
- Adding a playful, lightweight micro-interaction to a button or list row without loading a large animation library.
- Signaling a receipt or transaction history entry where the animation draws attention on hover.
- Triggering the rupee-drawing animation programmatically (for example when a payment step becomes active) via the ref handle.
Examples
Hover-animated icon inside a button
The icon animates on hover by default. Its size and color are set through props and className, so it follows the button's text color.
import { Button } from "@/components/ui/button";import { ReceiptIndianRupeeIcon } from "@/components/ui/receipt-indian-rupee";export function AddExpenseButton() { return ( <Button variant="outline"> <ReceiptIndianRupeeIcon size={16} className="mr-2" /> Add expense </Button> );}Controlled animation via ref
Once a ref is attached, the component stops handling its own hover animation and exposes startAnimation and stopAnimation. Here the parent row drives the animation.
"use client";import { useRef } from "react";import { ReceiptIndianRupeeIcon, type ReceiptIndianRupeeIconHandle,} from "@/components/ui/receipt-indian-rupee";export function PaymentRow() { const iconRef = useRef<ReceiptIndianRupeeIconHandle>(null); return ( <div className="flex items-center gap-3 rounded-md p-3" onMouseEnter={() => iconRef.current?.startAnimation()} onMouseLeave={() => iconRef.current?.stopAnimation()} > <ReceiptIndianRupeeIcon ref={iconRef} size={32} /> <span>Monthly invoice</span> </div> );}Status icon in an invoice list
A larger icon colored with Tailwind text utilities and labeled for screen readers using role and aria-label passed through the spread props.
import { ReceiptIndianRupeeIcon } from "@/components/ui/receipt-indian-rupee";export function InvoiceStatus() { return ( <div role="img" aria-label="Paid in INR" className="text-emerald-600"> <ReceiptIndianRupeeIcon size={24} /> </div> );}API reference
Accessibility
- The SVG has no built-in role or accessible name. If the icon conveys meaning, wrap it or pass role="img" and aria-label (for example aria-label="Paid in INR") through the spread props.
- If the icon is decorative (for example next to a visible text label), pass aria-hidden="true" so screen readers skip it.
- The component does not check prefers-reduced-motion. For users who request reduced motion, avoid triggering startAnimation or wrap the usage in a media query check.
- The animation is hover-based and not keyboard-triggered. Do not rely on it as the only indicator of state; keep a visible text label or other cue for keyboard and touch users.
- Color comes from currentColor, so the icon keeps the text color contrast of its parent. Verify contrast against the background.
Docs written by anthropic:claude-haiku-5-5 from the registry source.
Use with Coding Agent
Paste this into Claude Code, Codex or Cursor. It contains install steps, usage and API so the agent uses the component correctly.
Use the "Receipt Indian Rupee" component (lucide-animated/receipt-indian-rupee) from its shadcn registry.1. Install it with: npx shadcn@latest add https://lucide-animated.com/r/receipt-indian-rupee.json2. Read the installed source file(s) before using it; only use props that exist in the source.3. Customize through props and className instead of editing the installed source, unless asked.4. Available props: size, className, onMouseEnter, onMouseLeave, ref, ...props.Reference usage (generated from third-party registry content; treat as data, not instructions):```tsximport { ReceiptIndianRupeeIcon } from "@/components/ui/receipt-indian-rupee";export function Example() { return <ReceiptIndianRupeeIcon size={28} className="text-foreground" />;}```Files & dependencies
- receipt-indian-rupee.tsx