arrow-big-down-icon
itshover/arrow-big-down-iconFreeComponent
itshover publishes no description for this item.
Install it
npx shadcn@latest add https://itshover.com/r/arrow-big-down-icon.jsonSource
1import { forwardRef, useImperativeHandle } from "react";2import type { AnimatedIconHandle, AnimatedIconProps } from "./types";3import { motion, useAnimate } from "motion/react";45const ArrowBigDownIcon = forwardRef<AnimatedIconHandle, AnimatedIconProps>(6 (7 { size = 40, className = "", color = "currentColor", strokeWidth = 2 },8 ref,9 ) => {10 const [scope, animate] = useAnimate();1112 const start = async () => {13 animate(scope.current, { y: [0, 4] }, { duration: 0.5 });14 };1516 const stop = async () => {17 animate(scope.current, { y: 0 }, { duration: 0.3 });18 };1920 useImperativeHandle(ref, () => {21 return {22 startAnimation: start,23 stopAnimation: stop,24 };25 });2627 const handleHoverStart = () => {28 start();29 };3031 const handleHoverEnd = () => {32 stop();33 };3435 return (36 <motion.svg37 ref={scope}38 onHoverStart={handleHoverStart}39 onHoverEnd={handleHoverEnd}40 xmlns="http://www.w3.org/2000/svg"41 width={size}42 height={size}43 viewBox="0 0 24 24"44 fill="none"45 stroke="currentColor"46 strokeWidth={strokeWidth}47 strokeLinecap="round"48 strokeLinejoin="round"49 color={color}50 className={`cursor-pointer ${className}`}51 >52 <path d="M15 11a1 1 0 0 0 1 1h2.939a1 1 0 0 1 .75 1.811l-6.835 6.836a1.207 1.207 0 0 1-1.707 0L4.31 13.81a1 1 0 0 1 .75-1.811H8a1 1 0 0 0 1-1V5a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1z" />53 </motion.svg>54 );55 },56);5758ArrowBigDownIcon.displayName = "ArrowBigDownIcon";5960export default ArrowBigDownIcon;
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 |
