← Back

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

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

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

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

.ai-view-none-icon .shape {
  transform-box: view-box;
  transform-origin: 7.5px 7.5px;
}

.ai-view-none-icon:not(.no-hover):hover .shape {
  animation: ai-view-none-wobble 700ms ease-in-out;
}

@keyframes ai-view-none-wobble {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-6deg); }
  75% { transform: rotate(6deg); }
}
`}</style>
      <svg
        xmlns="http://www.w3.org/2000/svg"
        className={classes}
        viewBox="0 0 15 15"
        fill="none"
      >
        <path className="shape" d="M13.6533 1.00781C13.8273 1.02548 13.9923 1.07351 14.1436 1.14551L14.1748 1.12012L14.2402 1.19727C14.6935 1.45532 15 1.94115 15 2.5V12.5L14.9922 12.6533C14.9205 13.3593 14.3593 13.9205 13.6533 13.9922L13.5 14H1.5L1.34668 13.9922C1.17189 13.9744 1.0063 13.926 0.854492 13.8535L0.825195 13.8799L0.759766 13.8037C0.348324 13.5696 0.0579707 13.1473 0.0078125 12.6533L0 12.5V2.5C1.51001e-07 1.72334 0.590277 1.08461 1.34668 1.00781L1.5 1H13.5L13.6533 1.00781ZM1.85156 13H13.5C13.7761 13 14 12.7761 14 12.5V2.58691L1.85156 13ZM1.5 2C1.22386 2 1 2.22386 1 2.5V12.4121L13.1484 2H1.5Z" fill="currentColor"/>
      </svg>
    </>
  );
}