arrow-turn-left-up
ArrowTurnLeftUpIcon is an animated React icon that draws a 24×24 outline arrow turning left then pointing up. On hover it squashes and stretches vertically and hops up slightly, and it can also be driven imperatively through a ref.
shadcn add · no workarounds · theme neutral (none shipped)Installation
Requires @heroicons-animated in the registries of your components.json (shadcn adds official directory namespaces automatically).
Usage
import { ArrowTurnLeftUpIcon } from "@/components/ui/arrow-turn-left-up";export function Example() { return <ArrowTurnLeftUpIcon className="text-neutral-700 dark:text-neutral-300" />;}- Reply, undo, or branch-back actions in comments, chats, or threaded message UIs where a turn-left-and-up arrow conveys returning to a parent.
- Navigation or back affordances in menus, toolbars, and breadcrumbs that need a subtle hover motion without a heavy animation.
- Buttons or list rows where the icon should react on hover, and optionally be triggered programmatically (for example, when a related element is hovered).
- Marketing or landing UI that wants a lightweight, tasteful micro-interaction on an outline icon.
Examples
Basic hover animation
Renders the icon at its default 28px size. Hovering the icon plays the stretch-and-hop animation automatically; color is controlled with a Tailwind text class because the stroke uses currentColor.
import { ArrowTurnLeftUpIcon } from "@/components/ui/arrow-turn-left-up";export function BasicExample() { return ( <ArrowTurnLeftUpIcon className="text-neutral-800 dark:text-neutral-200" /> );}Imperative control through a ref
Uses the exported ArrowTurnLeftUpIconHandle type. When the wrapper is hovered, the parent calls startAnimation and stopAnimation through the ref, which bypasses the icon's own mouse handlers.
import { useRef } from "react";import { ArrowTurnLeftUpIcon, type ArrowTurnLeftUpIconHandle,} from "@/components/ui/arrow-turn-left-up";export function ReplyLink() { const iconRef = useRef<ArrowTurnLeftUpIconHandle>(null); return ( <div className="flex cursor-pointer items-center gap-2 text-sm font-medium" onMouseEnter={() => iconRef.current?.startAnimation()} onMouseLeave={() => iconRef.current?.stopAnimation()} > <ArrowTurnLeftUpIcon ref={iconRef} size={20} /> <span>Reply</span> </div> );}Small decorative icon
A 16px icon inside a list item, marked aria-hidden because the adjacent text already describes the action.
import { ArrowTurnLeftUpIcon } from "@/components/ui/arrow-turn-left-up";export function ThreadHint() { return ( <p className="flex items-center gap-1 text-xs text-muted-foreground"> <ArrowTurnLeftUpIcon aria-hidden="true" size={16} /> Replying to 2 messages </p> );}API reference
Accessibility
- The icon renders a plain SVG with no role, title, or aria-label. If it conveys meaning on its own, wrap it with role="img" and an aria-label on the wrapper, or pass a visible text label alongside it.
- If the icon is decorative (next to text that already describes the action), pass aria-hidden="true"; it is forwarded to the wrapper div through the spread props.
- The animation is triggered by pointer hover only and the wrapper is not focusable. For keyboard or touch users, make the surrounding control focusable (button or link) and drive the motion with the ref handle from focus or click handlers.
- The source does not check prefers-reduced-motion. If motion sensitivity matters in your app, wrap the calls to startAnimation in a media-query check or disable the animation for those users.
- Color comes from currentColor, so the icon keeps the text color's contrast. Make sure the surrounding text color meets WCAG 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 "arrow-turn-left-up" component (heroicons-animated/arrow-turn-left-up) from its shadcn registry.1. Install it with: npx shadcn@latest add @heroicons-animated/arrow-turn-left-up2. 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 { ArrowTurnLeftUpIcon } from "@/components/ui/arrow-turn-left-up";export function Example() { return <ArrowTurnLeftUpIcon className="text-neutral-700 dark:text-neutral-300" />;}```Files & dependencies
- arrow-turn-left-up.tsx