arrow-narrow-down-dashed-icon
itshover/arrow-narrow-down-dashed-iconFreeComponent
itshover publishes no description for this item.
Install it
npx shadcn@latest add https://itshover.com/r/arrow-narrow-down-dashed-icon.jsonSource
1import { forwardRef, useImperativeHandle } from "react";2import type { AnimatedIconHandle, AnimatedIconProps } from "./types";3import { motion, useAnimate } from "motion/react";45const ArrowNarrowDownDashedIcon = forwardRef<6 AnimatedIconHandle,7 AnimatedIconProps8>(9 (10 { size = 24, color = "currentColor", strokeWidth = 2, className = "" },11 ref,12 ) => {13 const [scope, animate] = useAnimate();1415 const start = async () => {16 await animate(17 ".arrow-group",18 {19 y: [0, 4, 0],20 },21 {22 duration: 0.5,23 ease: "easeInOut",24 },25 );26 };2728 const stop = () => {29 animate(".arrow-group", { y: 0 }, { duration: 0.2, ease: "easeOut" });30 };3132 useImperativeHandle(ref, () => {33 return {34 startAnimation: start,35 stopAnimation: stop,36 };37 });3839 const handleHoverStart = () => {40 start();41 };4243 const handleHoverEnd = () => {44 stop();45 };4647 return (48 <motion.div49 ref={scope}50 onHoverStart={handleHoverStart}51 onHoverEnd={handleHoverEnd}52 className={`inline-flex cursor-pointer items-center justify-center ${className}`}53 >54 <svg55 xmlns="http://www.w3.org/2000/svg"56 width={size}57 height={size}58 viewBox="0 0 24 24"59 fill="none"60 stroke={color}61 strokeWidth={strokeWidth}62 strokeLinecap="round"63 strokeLinejoin="round"64 >65 <motion.g className="arrow-group">66 <path d="M12 5v.5" />67 <path d="M12 8.5v1.5" />68 <path d="M12 13v6" />6970 <path d="M16 15l-4 4" />71 <path d="M8 15l4 4" />72 </motion.g>73 </svg>74 </motion.div>75 );76 },77);7879ArrowNarrowDownDashedIcon.displayName = "ArrowNarrowDownDashedIcon";8081export default ArrowNarrowDownDashedIcon;
What it pulls in
npm packages
Files it writes
More from itshover
All 263 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accessibility-iconaccessibility-icon | itshover | Components | Free | 1 dep · 2 files | |
| airplane-iconairplane-icon | itshover | Components | Free | 1 dep · 2 files | |
| alarm-clock-plus-iconalarm-clock-plus-icon | itshover | Components | Free | 1 dep · 2 files | |
| align-center-iconalign-center-icon | itshover | Components | Free | 1 dep · 2 files | |
| align-vertical-space-around-iconalign-vertical-space-around-icon | itshover | Components | Free | 1 dep · 2 files | |
| ambulance-iconambulance-icon | itshover | Components | Free | 1 dep · 2 files | |
| ampersand-iconampersand-icon | itshover | Components | Free | 1 dep · 2 files | |
| angry-iconangry-icon | itshover | Components | Free | 1 dep · 2 files |
