Eye None
Install
npm install @svg-animated-icons/reactCLI
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| Flag | Description |
|---|---|
--dest <dir> | Destination directory (default: components/animated-icons) |
Or copy the component with the CLI
CLI
npx @svg-animated-icons/cli add eye-none --reactCode
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 EyeNoneIcon({ disableHover, className }: Props) {
const classes = [
"ai-eye-none-icon",
disableHover ? "no-hover" : "",
className ?? "",
]
.filter(Boolean)
.join(" ");
return (
<>
<style>{`
.ai-eye-none-icon {
width: 1em;
height: 1em;
display: inline-block;
cursor: pointer;
overflow: visible;
}
.ai-eye-none-icon * {
transform-box: fill-box;
}
.ai-eye-none-icon.no-hover * {
transform: none;
opacity: 1;
animation: none;
}
.ai-eye-none-icon .slash {
stroke-dasharray: 16;
}
.ai-eye-none-icon:not(.no-hover):hover .slash {
animation: ai-eye-none-draw 700ms ease-in-out;
}
@keyframes ai-eye-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="eye" d="M7.50002 3C10.6922 3 13.3435 4.70671 14.9239 7.23535C15.0124 7.37717 15.0235 7.55201 14.9571 7.70215L14.9239 7.76465C13.3435 10.2933 10.6922 12 7.50002 12C4.30788 12 1.65659 10.2933 0.0761963 7.76465C-0.0249881 7.6026 -0.0249956 7.3974 0.0761963 7.23535L0.227563 7C1.82294 4.60122 4.4078 3 7.50002 3ZM7.50002 4C4.80354 4 2.53299 5.37905 1.09963 7.5C2.53299 9.62094 4.80354 11 7.50002 11C10.1963 11 12.4661 9.62068 13.8994 7.5C12.4661 5.3793 10.1963 4 7.50002 4Z" fill="currentColor"/>
<path className="slash" d="M12.6465 1.6465L1.6465 12.6465" stroke="currentColor" strokeWidth="1" strokeLinecap="round"/>
</svg>
</>
);
}