← Back

Arrow Up

Install

npm install @svg-animated-icons/react

CLI

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
FlagDescription
--dest <dir>Destination directory (default: components/animated-icons)

Or copy the component with the CLI

CLI
npx @svg-animated-icons/cli add arrow-up --react

Code

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 ArrowUpIcon({ disableHover, className }: Props) {
  const classes = [
    "ai-arrow-up-icon",
    disableHover ? "no-hover" : "",
    className ?? "",
  ]
    .filter(Boolean)
    .join(" ");

  return (
    <>
      <style>{`
.ai-arrow-up-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  cursor: pointer;
  overflow: visible;
}

.ai-arrow-up-icon * {
  transform-box: fill-box;
}

.ai-arrow-up-icon .arrow {
  transform-origin: center;
}

.ai-arrow-up-icon:not(.no-hover):hover .arrow {
  animation: ai-arrow-up-motion-1 700ms ease-in-out;
}

.ai-arrow-up-icon.no-hover * {
  transform: none;
  opacity: 1;
  animation: none;
}

@keyframes ai-arrow-up-motion-1 {
  0%,
  50%,
  100% {
    transform: translateY(0);
  }
  25%,
  75% {
    transform: translateY(-1.5px);
  }
}
`}</style>
      <svg
        xmlns="http://www.w3.org/2000/svg"
        className={classes}
        viewBox="0 0 15 15"
        fill="none"
      >
        <path className="arrow" d="M7.5 12.8V2.7M3.6 6.6L7.5 2.7L11.4 6.6" stroke="currentColor" strokeWidth="1.15" strokeLinecap="round" strokeLinejoin="round"/>
      </svg>
    </>
  );
}