← Back

Text None

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

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

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

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

.ai-text-none-icon .slash {
  stroke-dasharray: 16;
}

.ai-text-none-icon:not(.no-hover):hover .slash {
  animation: ai-text-none-draw 700ms ease-in-out;
}

@keyframes ai-text-none-draw {
  0% { stroke-dashoffset: 0; }
  50% { stroke-dashoffset: -16; }
  100% { stroke-dashoffset: -32; }
}
`}</style>
      <svg
        xmlns="http://www.w3.org/2000/svg"
        className={classes}
        viewBox="0 0 15 15"
        fill="none"
      >
        <path className="t" d="M11.5793 2.05685C11.5826 2.05744 11.5858 2.05815 11.5891 2.05881L11.591 2.05978C11.5963 2.06087 11.6014 2.06242 11.6066 2.06369C11.6243 2.06801 11.6416 2.07297 11.6584 2.07932C11.6711 2.08411 11.6833 2.09003 11.6955 2.09592C11.705 2.10052 11.7147 2.10436 11.7238 2.10959L11.7336 2.11545C11.739 2.11873 11.744 2.12269 11.7492 2.12619C11.7837 2.14933 11.8151 2.17666 11.842 2.20822C11.9093 2.28675 11.9504 2.38867 11.9504 2.50021V4.50021C11.9503 4.74857 11.7485 4.95031 11.5002 4.95041C11.2517 4.95041 11.0501 4.74863 11.05 4.50021V2.95041H8.04999V12.05H9.25409C9.50262 12.05 9.70428 12.2517 9.70428 12.5002C9.7042 12.7175 9.54981 12.8986 9.34491 12.9406L9.25409 12.9504H5.75409L5.66327 12.9406C5.45848 12.8985 5.30398 12.7174 5.30389 12.5002C5.30389 12.2829 5.45845 12.1019 5.66327 12.0598L5.75409 12.05H6.95038V2.95041H3.95038V4.50021C3.95025 4.74857 3.74854 4.9503 3.50018 4.95041C3.25173 4.95041 3.05011 4.74863 3.04999 4.50021V2.50021C3.04999 2.4456 3.06047 2.39339 3.07831 2.34494C3.07994 2.3405 3.08045 2.33564 3.08221 2.33127C3.08731 2.31866 3.09459 2.30714 3.10077 2.29514C3.10725 2.2825 3.11368 2.26993 3.12128 2.25803C3.12798 2.24757 3.13524 2.2376 3.14276 2.22775C3.14853 2.22018 3.15411 2.21248 3.16034 2.20529L3.18182 2.18185C3.18639 2.17728 3.19171 2.17353 3.19647 2.16916C3.20838 2.15819 3.22054 2.14755 3.23358 2.13791C3.24267 2.13121 3.25231 2.12537 3.2619 2.11935C3.27449 2.11144 3.28758 2.10453 3.30096 2.09787C3.31229 2.09225 3.3233 2.08594 3.33514 2.08127C3.3506 2.07516 3.36675 2.07101 3.383 2.06662C3.3934 2.06382 3.40356 2.05989 3.41425 2.05783C3.44199 2.05247 3.47087 2.05002 3.50018 2.05002H11.5002L11.5793 2.05685Z" fill="currentColor"/>
        <path className="slash" d="M13 1.5L2 13" stroke="currentColor" strokeWidth="1" strokeLinecap="round"/>
      </svg>
    </>
  );
}