← Back

Overline

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

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

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

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

.ai-overline-icon .line {
  transform-origin: center;
}

.ai-overline-icon:not(.no-hover):hover .line {
  animation: ai-overline-pulse 700ms ease-in-out;
}

@keyframes ai-overline-pulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}
`}</style>
      <svg
        xmlns="http://www.w3.org/2000/svg"
        className={classes}
        viewBox="0 0 15 15"
        fill="none"
      >
        <path className="letter" d="M10.5003 3.75038C10.7763 3.75054 11.0003 3.97434 11.0003 4.25038V9.55019C11.0001 11.4829 9.43304 13.05 7.50031 13.0502C5.56744 13.0502 4.00051 11.483 4.00031 9.55019V4.25038C4.00031 3.97424 4.22416 3.75038 4.50031 3.75038C4.77631 3.75054 5.00031 3.97434 5.00031 4.25038V9.55019C5.00051 10.9307 6.11972 12.0502 7.50031 12.0502C8.88075 12.05 10.0001 10.9306 10.0003 9.55019V4.25038C10.0003 3.97424 10.2242 3.75038 10.5003 3.75038Z" fill="currentColor"/>
        <path className="line" d="M11.5814 1.10878C11.7632 1.14644 11.9007 1.30741 11.9007 1.50038C11.9005 1.69323 11.7631 1.85441 11.5814 1.89198L11.5003 1.90077H3.50031C3.27952 1.90077 3.10013 1.72112 3.09991 1.50038C3.09991 1.27947 3.27939 1.09999 3.50031 1.09999H11.5003L11.5814 1.10878Z" fill="currentColor"/>
      </svg>
    </>
  );
}