brand-vercel-icon
itshover/brand-vercel-iconFreeComponent
itshover publishes no description for this item.
Install it
npx shadcn@latest add https://itshover.com/r/brand-vercel-icon.jsonSource
1import { forwardRef, useImperativeHandle } from "react";2import type { AnimatedIconHandle, AnimatedIconProps } from "./types";3import { motion, useAnimate } from "motion/react";45const BrandVercelIcon = 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 await animate(14 ".triangle",15 { rotateY: 180 },16 { duration: 0.6, ease: "easeInOut" },17 );18 };1920 const stop = async () => {21 await animate(22 ".triangle",23 { rotateY: -180 },24 { duration: 0.6, ease: "easeInOut" },25 );26 };2728 useImperativeHandle(ref, () => ({29 startAnimation: start,30 stopAnimation: stop,31 }));3233 return (34 <motion.svg35 ref={scope}36 onHoverStart={start}37 onHoverEnd={stop}38 xmlns="http://www.w3.org/2000/svg"39 width={size}40 height={size}41 viewBox="0 0 24 24"42 fill="none"43 stroke={color}44 strokeWidth={strokeWidth}45 strokeLinecap="round"46 strokeLinejoin="round"47 className={`cursor-pointer ${className}`}48 >49 <path stroke="none" d="M0 0h24v24H0z" fill="none" />50 <motion.path className="triangle" d="M3 19h18l-9 -15z" />51 </motion.svg>52 );53 },54);5556BrandVercelIcon.displayName = "BrandVercelIcon";57export default BrandVercelIcon;
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 |
