← Back

Timer

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

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

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

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

.ai-timer-icon .hand {
  transform-box: view-box;
  transform-origin: 7.5px 7.5px;
}

.ai-timer-icon:not(.no-hover):hover .hand {
  animation: ai-timer-sweep 700ms linear;
}

@keyframes ai-timer-sweep {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}
`}</style>
      <svg
        xmlns="http://www.w3.org/2000/svg"
        className={classes}
        viewBox="0 0 15 15"
        fill="none"
      >
        <path className="body" fillRule="evenodd" d="M7.50037 0.849976C11.1729 0.850187 14.1498 3.8278 14.1498 7.50037C14.1496 11.1727 11.1727 14.1496 7.50037 14.1498C3.8278 14.1498 0.850187 11.1729 0.849976 7.50037C0.849976 5.86069 1.44404 4.35792 2.4281 3.19861L2.50134 3.1283C2.68432 2.98499 2.94906 2.98471 3.13318 3.14099C3.34359 3.31969 3.36942 3.63558 3.1908 3.84607L3.03748 4.03357C2.2928 4.9907 1.84998 6.19353 1.84998 7.50037C1.85019 10.6206 4.38009 13.1498 7.50037 13.1498C10.6205 13.1496 13.1496 10.6205 13.1498 7.50037C13.1498 4.54863 10.8863 2.12674 8.00037 1.87341V3.52185C8.00037 3.79786 7.77633 4.02164 7.50037 4.02185C7.22422 4.02185 7.00037 3.79799 7.00037 3.52185V1.34998L7.01013 1.24939C7.05669 1.02146 7.25868 0.849976 7.50037 0.849976Z" fill="currentColor"/>
        <path className="hand" d="M4.25037 4.25037C4.33688 4.16386 4.47322 4.15268 4.57263 4.224L8.08044 6.7406C8.56201 7.08607 8.61866 7.7805 8.19958 8.19958C7.7805 8.61867 7.08608 8.56202 6.7406 8.08044L4.224 4.57263C4.15268 4.47322 4.16385 4.33688 4.25037 4.25037Z" fill="currentColor"/>
      </svg>
    </>
  );
}