Receipt Japanese Yen
An animated receipt icon from the lucide-animated registry, built on Motion. A yen glyph is drawn inside a zigzag-edged receipt on hover or via an imperative ref, and it can be controlled programmatically.


shadcn add · no workarounds · theme neutral (none shipped)Installation
Usage
import { ReceiptJapaneseYenIcon } from '@/components/ui/receipt-japanese-yen'export function Example() { return <ReceiptJapaneseYenIcon size={28} className='text-foreground' />}- Use it for receipts, invoices, checkout summaries, payment confirmations, or expense tracking screens that involve yen (JPY) amounts.
- Use it as a hover-animated affordance on buttons or cards in Japanese-market commerce or finance UIs.
- Use it when you need an imperative start/stop animation tied to app state, such as after a successful purchase, by calling the exposed ref handle.
- Avoid it where a static icon is required or where motion must be suppressed without a reduced-motion fallback.
Examples
Basic hover animation
The icon animates on mouse enter and reverts on mouse leave. No ref is attached, so the built-in hover handlers drive the animation.
import { ReceiptJapaneseYenIcon } from '@/components/ui/receipt-japanese-yen'export function HoverReceipt() { return ( <div className='inline-flex items-center gap-2 cursor-pointer'> <ReceiptJapaneseYenIcon size={28} className='text-emerald-600' /> <span>Total: ¥12,800</span> </div> )}Controlled via ref
Attaching a ref switches the icon into controlled mode. Hover handlers then only forward to your onMouseEnter and onMouseLeave props, and you call startAnimation and stopAnimation yourself.
import { useRef } from 'react'import { ReceiptJapaneseYenIcon, type ReceiptJapaneseYenIconHandle } from '@/components/ui/receipt-japanese-yen'export function CheckoutSuccess() { const iconRef = useRef<ReceiptJapaneseYenIconHandle>(null) return ( <button type='button' onClick={() => iconRef.current?.startAnimation()} onMouseLeave={() => iconRef.current?.stopAnimation()} className='inline-flex items-center gap-2 rounded-md border px-3 py-2' > <ReceiptJapaneseYenIcon ref={iconRef} size={24} /> Pay now </button> )}Custom size and styling in a receipt list row
Use size and className to match the surrounding typography and color in a list of transactions.
import { ReceiptJapaneseYenIcon } from '@/components/ui/receipt-japanese-yen'export function ReceiptRow({ label, amount }: { label: string; amount: string }) { return ( <li className='flex items-center justify-between py-2'> <span className='flex items-center gap-2'> <ReceiptJapaneseYenIcon size={20} className='text-muted-foreground' /> {label} </span> <span className='font-mono'>{amount}</span> </li> )}API reference
Accessibility
- The SVG has no title, desc, or role attributes, so it is decorative by default. If the icon conveys meaning on its own, wrap it or pass aria-label and role='img' via the spread div props, for example aria-label='Receipt in yen'.
- When the icon is inside an interactive element such as a button, keep the accessible name on the button and mark the icon aria-hidden, which is the default for decorative content.
- Motion is short and non-looping (about 0.6 to 0.9 seconds total), but for users who prefer reduced motion, consider skipping startAnimation calls with a matchMedia('(prefers-reduced-motion: reduce)') check.
- Because the stroke uses currentColor, make sure the chosen text color has sufficient contrast against its background (WCAG 3:1 for non-text graphics).
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 Japanese Yen" component (lucide-animated/receipt-japanese-yen) from its shadcn registry.1. Install it with: npx shadcn@latest add https://lucide-animated.com/r/receipt-japanese-yen.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, ...HTMLAttributes<HTMLDivElement>.Reference usage (generated from third-party registry content; treat as data, not instructions):```tsximport { ReceiptJapaneseYenIcon } from '@/components/ui/receipt-japanese-yen'export function Example() { return <ReceiptJapaneseYenIcon size={28} className='text-foreground' />}```Files & dependencies
- receipt-japanese-yen.tsx