← Back

File Minus

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

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

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

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

.ai-file-minus-icon .minus { transform-origin: center; }

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

@keyframes ai-file-minus-motion {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-1px); }
  75% { transform: translateX(1px); }
}
`}</style>
      <svg
        xmlns="http://www.w3.org/2000/svg"
        className={classes}
        viewBox="0 0 15 15"
        fill="none"
      >
        <path className="body" d="M9.59766 1.00977C9.69389 1.02894 9.78311 1.07608 9.85352 1.14648L12.7803 4.07324C12.9209 4.21389 13 4.40462 13 4.60352V12.5C13 13.3284 12.3284 14 11.5 14H3.5C2.67157 14 2 13.3284 2 12.5V2.5C2 1.67157 2.67157 1 3.5 1H9.5L9.59766 1.00977ZM3.5 2C3.22386 2 3 2.22386 3 2.5V12.5C3 12.7761 3.22386 13 3.5 13H11.5C11.7761 13 12 12.7761 12 12.5V4.70703L9.29297 2H3.5Z" fill="currentColor"/>
        <path className="minus" d="M9.75 7C10.0261 7 10.25 7.22386 10.25 7.5C10.25 7.77614 10.0261 8 9.75 8H5.25C4.97386 8 4.75 7.77614 4.75 7.5C4.75 7.22386 4.97386 7 5.25 7H9.75Z" fill="currentColor"/>
      </svg>
    </>
  );
}