Send
An animated send (paper-plane) icon from the lucide-animated registry. On hover it moves the plane up and to the right while a dashed trail draws out behind it, and it can also be driven programmatically through a ref.


shadcn add · no workarounds · theme neutral (none shipped)Installation
Usage
import { SendIcon } from '@/components/ui/send';export function Example() { return <SendIcon className='text-foreground' size={28} />;}- Submit, send, or dispatch buttons in chat, messaging, or comment composers where a launch animation reinforces the action
- Email or form submission controls that should give a playful hover cue
- Navigation or toolbar items that need an animated icon driven by hover or by parent code through a ref
- Marketing or landing UI that calls for a lively, lightweight icon animation built on motion/react
Examples
Chat send button
Icon inside a button that animates on hover, with the wrapper div styled through className.
import { SendIcon } from '@/components/ui/send';export function ChatSendButton() { return ( <button type='submit' className='inline-flex items-center gap-2 rounded-md bg-primary px-4 py-2 text-primary-foreground'> <SendIcon size={18} /> Send </button> );}Programmatic control via ref
Parent triggers the animation with startAnimation and resets it with stopAnimation, for example after a message is submitted. When a ref is attached, hover runs the parent's onMouseEnter/onMouseLeave instead of the built-in animation.
import { useRef } from 'react';import { SendIcon, type SendIconHandle } from '@/components/ui/send';export function SubmitWithFeedback() { const iconRef = useRef<SendIconHandle>(null); return ( <div onMouseEnter={() => iconRef.current?.startAnimation()} onMouseLeave={() => iconRef.current?.stopAnimation()} > <SendIcon ref={iconRef} size={24} /> </div> );}Menu item with hover handlers
Icon in a navigation link with a custom class for color and a standard onMouseEnter handler forwarded to the wrapper div.
import { SendIcon } from '@/components/ui/send';export function SendMenuItem() { return ( <a href='/messages' className='flex items-center gap-2 text-sm hover:text-blue-600'> <SendIcon size={20} onMouseEnter={() => console.log('hover')} /> Messages </a> );}API reference
Accessibility
- The component renders no text or aria-label; add aria-label (for example 'Send message') on the wrapper or the parent button when the icon is the only content.
- The svg has no role or title, so it is treated as decorative; if it conveys meaning on its own, wrap it in an element with role='img' and an accessible name.
- Motion is triggered by hover only and is not tied to focus; keyboard users get no animation cue, so pair the icon with a focusable control and a text label.
- Respect reduced-motion preferences by disabling or shortening the animation in parent code when prefers-reduced-motion is set, since this component does not check it itself.
- Color follows currentColor, so ensure the parent text color meets contrast requirements against its 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 "Send" component (lucide-animated/send) from its shadcn registry.1. Install it with: npx shadcn@latest add https://lucide-animated.com/r/send.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 { SendIcon } from '@/components/ui/send';export function Example() { return <SendIcon className='text-foreground' size={28} />;}```Files & dependencies
- send.tsx