Vercel Logo
Install
npm install @svg-animated-icons/reactCLI
Copy an icon component straight into your project — shadcn-style. Replace {icon} with an icon name like arrow-left.
terminal
npx @svg-animated-icons/cli add {icon} --react| Flag | Description |
|---|---|
--dest <dir> | Destination directory (default: components/animated-icons) |
Or copy the component with the CLI
CLI
npx @svg-animated-icons/cli add vercel-logo --reactCode
React
// Generated by @svg-animated-icons/cli
// You own this file — edit it freely.
import React from "react";
type Props = {
disableHover?: boolean;
className?: string;
};
export function VercelLogoIcon({ disableHover, className }: Props) {
const classes = [
"ai-vercel-logo-icon",
disableHover ? "no-hover" : "",
className ?? "",
]
.filter(Boolean)
.join(" ");
return (
<>
<style>{`
.ai-vercel-logo-icon {
width: 1em;
height: 1em;
display: inline-block;
cursor: pointer;
overflow: visible;
}
.ai-vercel-logo-icon * {
transform-box: fill-box;
}
.ai-vercel-logo-icon.no-hover * {
transform: none;
opacity: 1;
animation: none;
}
.ai-vercel-logo-icon .triangle {
transform-box: view-box;
transform-origin: 7.5px 9px;
}
.ai-vercel-logo-icon:not(.no-hover):hover .triangle {
animation: ai-vercel-logo-tilt 700ms ease-in-out;
}
@keyframes ai-vercel-logo-tilt {
0%, 100% { transform: rotate(0); }
25% { transform: rotate(-6deg); }
75% { transform: rotate(6deg); }
}
`}</style>
<svg
xmlns="http://www.w3.org/2000/svg"
className={classes}
viewBox="0 0 15 15"
fill="none"
>
<path className="triangle" d="M14.3998 13H0.599976L7.50037 1L14.3998 13ZM2.32849 12H12.6713L7.49939 3.00488L2.32849 12Z" fill="currentColor"/>
</svg>
</>
);
}