arrow-big-up-dash-icon
itshover/arrow-big-up-dash-iconFreeComponent
itshover publishes no description for this item.
Install it
npx shadcn@latest add https://itshover.com/r/arrow-big-up-dash-icon.jsonSource
1import { forwardRef, useImperativeHandle } from "react";2import type { AnimatedIconHandle, AnimatedIconProps } from "./types";3import { motion, useAnimate } from "motion/react";45const ArrowBigUpDashIcon = forwardRef<AnimatedIconHandle, AnimatedIconProps>(6 (7 { size = 24, color = "currentColor", strokeWidth = 2, className = "" },8 ref,9 ) => {10 const [scope, animate] = useAnimate();1112 const start = async () => {13 animate(".arrow", { y: -4 }, { duration: 0.3, ease: "easeOut" });14 animate(15 ".dash",16 { scale: 1.2, opacity: 0.7 },17 { duration: 0.3, ease: "easeOut" },18 );19 };2021 const stop = () => {22 animate(".arrow", { y: 0 }, { duration: 0.2, ease: "easeInOut" });23 animate(24 ".dash",25 { scale: 1, opacity: 1 },26 { duration: 0.2, ease: "easeInOut" },27 );28 };2930 useImperativeHandle(ref, () => {31 return {32 startAnimation: start,33 stopAnimation: stop,34 };35 });3637 const handleHoverStart = () => {38 start();39 };4041 const handleHoverEnd = () => {42 stop();43 };4445 return (46 <motion.svg47 ref={scope}48 onHoverStart={handleHoverStart}49 onHoverEnd={handleHoverEnd}50 xmlns="http://www.w3.org/2000/svg"51 width={size}52 height={size}53 viewBox="0 0 24 24"54 fill="none"55 stroke={color}56 strokeWidth={strokeWidth}57 strokeLinecap="round"58 strokeLinejoin="round"59 className={`cursor-pointer ${className}`}60 >61 <motion.path62 className="arrow"63 d="M9 13a1 1 0 0 0-1-1H5.061a1 1 0 0 1-.75-1.811l6.836-6.835a1.207 1.207 0 0 1 1.707 0l6.835 6.835a1 1 0 0 1-.75 1.811H16a1 1 0 0 0-1 1v2a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1z"64 />65 <motion.path66 className="dash"67 style={{ transformOrigin: "12px 20px" }}68 d="M9 20h6"69 />70 </motion.svg>71 );72 },73);7475ArrowBigUpDashIcon.displayName = "ArrowBigUpDashIcon";7677export default ArrowBigUpDashIcon;
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 |
