← Back

Circle Backslash

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

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

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

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

.ai-circle-backslash-icon .slash {
  stroke-dasharray: 13;
  stroke-dashoffset: 13;
}

.ai-circle-backslash-icon:not(.no-hover):hover .slash {
  animation: ai-circle-backslash-draw 700ms ease-out forwards;
}

.ai-circle-backslash-icon:not(:hover) .slash {
  stroke-dashoffset: 0;
}

@keyframes ai-circle-backslash-draw {
  from { stroke-dashoffset: 13; }
  to { stroke-dashoffset: 0; }
}
`}</style>
      <svg
        xmlns="http://www.w3.org/2000/svg"
        className={classes}
        viewBox="0 0 15 15"
        fill="none"
      >
        <circle className="ring" cx="7.5" cy="7.5" r="6.25" stroke="currentColor" strokeWidth="1"/>
        <path className="slash" d="M3.1 3.1L11.9 11.9" stroke="currentColor" strokeWidth="1" strokeLinecap="round"/>
      </svg>
    </>
  );
}