BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/lucide-animated/arrow-down-left

arrow-down-left

lucide-animated-icons/arrow-down-left
FreeComponent

lucide-animated publishes no description for this item.

Install it

npx shadcn@latest add https://icons.pqoqubbw.dev/r/arrow-down-left.json

Source

arrow-down-left.tsxicons.pqoqubbw.dev/r/arrow-down-left.json
1"use client";
2
3import type { Variants } from "motion/react";
4import { motion, useAnimation } from "motion/react";
5import type { HTMLAttributes } from "react";
6import { forwardRef, useCallback, useImperativeHandle, useRef } from "react";
7
8import { cn } from "@/lib/utils";
9
10export interface ArrowDownLeftIconHandle {
11 startAnimation: () => void;
12 stopAnimation: () => void;
13}
14
15interface ArrowDownLeftIconProps extends HTMLAttributes<HTMLDivElement> {
16 size?: number;
17}
18
19const HEAD_VARIANTS: Variants = {
20 normal: { translateX: 0, translateY: 0 },
21 animate: {
22 translateX: [0, 3, 0],
23 translateY: [0, -3, 0],
24 transition: {
25 duration: 0.5,
26 ease: "easeInOut",
27 },
28 },
29};
30
31const SHAFT_VARIANTS: Variants = {
32 normal: { translateX: 0, translateY: 0, scale: 1 },
33 animate: {
34 translateX: [0, 3, 0],
35 translateY: [0, -3, 0],
36 scale: [1, 0.85, 1],
37 originX: 1,
38 originY: 1,
39 transition: {
40 duration: 0.5,
41 ease: "easeInOut",
42 },
43 },
44};
45
46const ArrowDownLeftIcon = forwardRef<
47 ArrowDownLeftIconHandle,
48 ArrowDownLeftIconProps
49>(({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {
50 const controls = useAnimation();
51 const isControlledRef = useRef(false);
52
53 useImperativeHandle(ref, () => {
54 isControlledRef.current = true;
55 return {
56 startAnimation: () => controls.start("animate"),
57 stopAnimation: () => controls.start("normal"),
58 };
59 });
60
61 const handleMouseEnter = useCallback(
62 (e: React.MouseEvent<HTMLDivElement>) => {
63 if (!isControlledRef.current) controls.start("animate");
64 onMouseEnter?.(e);
65 },
66 [controls, onMouseEnter]
67 );
68
69 const handleMouseLeave = useCallback(
70 (e: React.MouseEvent<HTMLDivElement>) => {
71 if (!isControlledRef.current) controls.start("normal");
72 onMouseLeave?.(e);
73 },
74 [controls, onMouseLeave]
75 );
76
77 return (
78 <div
79 className={cn(className)}
80 onMouseEnter={handleMouseEnter}
81 onMouseLeave={handleMouseLeave}
82 {...props}
83 >
84 <svg
85 fill="none"
86 height={size}
87 stroke="currentColor"
88 strokeLinecap="round"
89 strokeLinejoin="round"
90 strokeWidth="2"
91 viewBox="0 0 24 24"
92 width={size}
93 xmlns="http://www.w3.org/2000/svg"
94 >
95 <motion.path
96 animate={controls}
97 d="M17 17H7V7"
98 variants={HEAD_VARIANTS}
99 />
100 <motion.path
101 animate={controls}
102 d="M7 17 L12 12"
103// … truncated

What it pulls in

npm packages

  • motion

Files it writes

  • arrow-down-left.tsx

Facts

Registry
lucide-animated
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-03
Last confirmed
today

Go to the source

icons.pqoqubbw.dev Raw registry item This item as JSON

More from lucide-animated

All 466 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
a-arrow-downa-arrow-downlucide-animatedComponentsFree1 dep
a-arrow-upa-arrow-uplucide-animatedComponentsFree1 dep
accessibilityaccessibilitylucide-animatedComponentsFree1 dep
activityactivitylucide-animatedComponentsFree1 dep
air-ventair-ventlucide-animatedComponentsFree1 dep
airplaneairplanelucide-animatedComponentsFree1 dep
airplayairplaylucide-animatedComponentsFree1 dep
alarm-clockalarm-clocklucide-animatedComponentsFree1 dep
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex