Georgian Lari

An animated Georgian Lari currency icon that draws its outline and two vertical strokes on hover, built with motion/react and forwardRef. It can be triggered by hover or controlled programmatically through a ref with startAnimation and stopAnimation.

Georgian Lari
LIVE · running in a sandboxed iframe
Installed with plain shadcn add · no workarounds · theme neutral (none shipped)
See how it was built

Installation

pnpm dlx shadcn@latest add https://lucide-animated.com/r/georgian-lari.json

Usage

usage.tsx
import { GeorgianLariIcon } from '@/components/ui/georgian-lari'; export default function Example() { return <GeorgianLariIcon className='text-foreground' size={32} />; }
  • Showing a Georgian Lari (GEL) currency symbol next to prices, balances, or currency selectors
  • Adding a subtle hover-triggered micro-interaction to finance or payment UI such as wallet or pricing cards
  • Driving the icon animation programmatically (for example on a step completion or a button click) via the exposed ref handle
  • Replacing a static currency glyph with an animated icon in lucide-style icon sets

Examples

Basic hover animation

Renders the icon with default size; hovering the wrapper plays the draw-in animation automatically.

basic-hover-animation.tsx
import { GeorgianLariIcon } from '@/components/ui/georgian-lari'; export default function BasicExample() { return <GeorgianLariIcon className='text-foreground' />; }

Price label with currency icon

Uses the icon inline next to a price, with a custom size and color via Tailwind classes.

price-label-with-currency-icon.tsx
import { GeorgianLariIcon } from '@/components/ui/georgian-lari'; export default function PriceExample() { return <div className='flex items-center gap-1 text-2xl font-semibold'><GeorgianLariIcon className='text-emerald-600' size={24} /><span>120.00</span></div>; }

Programmatic control via ref

Attaches a ref to start and stop the animation from outside. Once a ref is attached, hover no longer triggers the animation automatically and only forwards to the optional onMouseEnter/onMouseLeave handlers.

programmatic-control-via-ref.tsx
import { useRef } from 'react'; import { GeorgianLariIcon, type GeorgianLariIconHandle } from '@/components/ui/georgian-lari'; export default function ControlledExample() { const iconRef = useRef<GeorgianLariIconHandle>(null); return <div className='flex flex-col items-start gap-3'><GeorgianLariIcon ref={iconRef} className='text-foreground' size={36} /><div className='flex gap-2'><button type='button' onClick={() => iconRef.current?.startAnimation()}>Play</button><button type='button' onClick={() => iconRef.current?.stopAnimation()}>Reset</button></div></div>; }

Icon inside a button

Places the animated icon inside a button so hovering the whole button area animates the icon, with an accessible label on the button.

icon-inside-a-button.tsx
import { GeorgianLariIcon } from '@/components/ui/georgian-lari'; export default function ButtonExample() { return <button type='button' aria-label='Pay in GEL' className='inline-flex items-center gap-2 rounded-md border px-4 py-2'><GeorgianLariIcon size={20} /><span>Pay in GEL</span></button>; }

API reference

PropTypeDefaultDescription
sizenumber28Width and height of the rendered SVG in pixels.
classNamestring—Class names applied to the outer div wrapper (inherited from HTMLAttributes<HTMLDivElement>).
onMouseEnter(e: React.MouseEvent<HTMLDivElement>) => void—Mouse enter handler. When the ref handle is attached, it is called instead of the built-in animation trigger; otherwise it is called in addition to nothing and the animation plays automatically.
onMouseLeave(e: React.MouseEvent<HTMLDivElement>) => void—Mouse leave handler. When the ref handle is attached, it is called instead of the built-in reset; otherwise the icon returns to its resting state automatically.
refReact.Ref<GeorgianLariIconHandle>—Exposes startAnimation() and stopAnimation() imperatively, and switches the component into controlled mode.
...propsHTMLAttributes<HTMLDivElement>—All other standard div attributes (id, style, aria-*, data-*, etc.) are spread onto the outer wrapper div.

Accessibility

  • The icon is decorative SVG with no role, title, or aria-label; when it conveys meaning on its own, pass aria-label or role='img' via props on the wrapper div.
  • When the icon sits inside a labeled button or next to visible text, add aria-hidden='true' to the wrapper to avoid redundant announcements.
  • Hover is the only built-in trigger, so keyboard and touch users do not get the animation; if it signals state, expose the same information in text or call startAnimation from focus or click handlers.
  • The source does not check prefers-reduced-motion; consider disabling the animation via the ref controls or by wrapping usage in a motion-reduce condition if needed.
  • Stroke color follows currentColor, so ensure sufficient contrast against the background with the chosen text color.

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.

prompt.md
Use the "Georgian Lari" component (lucide-animated/georgian-lari) from its shadcn registry.1. Install it with: npx shadcn@latest add https://lucide-animated.com/r/georgian-lari.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 { GeorgianLariIcon } from '@/components/ui/georgian-lari'; export default function Example() { return <GeorgianLariIcon className='text-foreground' size={32} />; }```

Files & dependencies

  • georgian-lari.tsx
dependenciesmotion

Looks similar, elsewhere