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/airplane

airplane

lucide-animated-icons/airplane
FreeComponent

lucide-animated publishes no description for this item.

Install it

npx shadcn@latest add https://icons.pqoqubbw.dev/r/airplane.json

Source

airplane.tsxicons.pqoqubbw.dev/r/airplane.json
1"use client";
2
3import { motion, useAnimation } from "motion/react";
4import type { HTMLAttributes } from "react";
5import { forwardRef, useCallback, useImperativeHandle, useRef } from "react";
6
7import { cn } from "@/lib/utils";
8
9export interface AirplaneIconHandle {
10 startAnimation: () => void;
11 stopAnimation: () => void;
12}
13
14interface AirplaneIconProps extends HTMLAttributes<HTMLDivElement> {
15 size?: number;
16}
17
18const SPEED_LINES = [
19 { x1: 5, y1: 15, x2: 1, y2: 19, delay: 0.1 },
20 { x1: 7, y1: 17, x2: 3, y2: 21, delay: 0.2 },
21 { x1: 9, y1: 19, x2: 5, y2: 23, delay: 0.3 },
22];
23
24const AirplaneIcon = forwardRef<AirplaneIconHandle, AirplaneIconProps>(
25 ({ onMouseEnter, onMouseLeave, className, size = 28, ...props }, ref) => {
26 const controls = useAnimation();
27 const isControlledRef = useRef(false);
28
29 useImperativeHandle(ref, () => {
30 isControlledRef.current = true;
31
32 return {
33 startAnimation: () => controls.start("animate"),
34 stopAnimation: () => controls.start("normal"),
35 };
36 });
37
38 const handleMouseEnter = useCallback(
39 (e: React.MouseEvent<HTMLDivElement>) => {
40 if (isControlledRef.current) {
41 onMouseEnter?.(e);
42 } else {
43 controls.start("animate");
44 }
45 },
46 [controls, onMouseEnter]
47 );
48
49 const handleMouseLeave = useCallback(
50 (e: React.MouseEvent<HTMLDivElement>) => {
51 if (isControlledRef.current) {
52 onMouseLeave?.(e);
53 } else {
54 controls.start("normal");
55 }
56 },
57 [controls, onMouseLeave]
58 );
59
60 return (
61 <div
62 className={cn(className)}
63 onMouseEnter={handleMouseEnter}
64 onMouseLeave={handleMouseLeave}
65 {...props}
66 >
67 <svg
68 className="overflow-visible"
69 fill="none"
70 height={size}
71 stroke="currentColor"
72 strokeLinecap="round"
73 strokeLinejoin="round"
74 strokeWidth="2"
75 viewBox="0 0 24 24"
76 width={size}
77 xmlns="http://www.w3.org/2000/svg"
78 >
79 <motion.path
80 animate={controls}
81 d="M17.8 19.2L16 11l3.5-3.5C21 6 21.5 4 21 3c-1-.5-3 0-4.5 1.5L13 8 4.8 6.2c-.5-.1-.9.1-1.1.5l-.3.5c-.2.5-.1 1 .3 1.3L9 12l-2 3H4l-1 1 3 2 2 3 1-1v-3l3-2 3.5 5.3c.3.4.8.5 1.3.3l.5-.2c.4-.3.6-.7.5-1.2z"
82 transition={{
83 duration: 0.5,
84 }}
85 variants={{
86 normal: { x: 0, y: 0, scale: 1 },
87// … truncated

What it pulls in

npm packages

  • motion

Files it writes

  • airplane.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
airplayairplaylucide-animatedComponentsFree1 dep
alarm-clockalarm-clocklucide-animatedComponentsFree1 dep
alarm-clock-checkalarm-clock-checklucide-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