Value 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 value-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 ValueNoneIcon({ disableHover, className }: Props) {
const classes = [
"ai-value-none-icon",
disableHover ? "no-hover" : "",
className ?? "",
]
.filter(Boolean)
.join(" ");
return (
<>
<style>{`
.ai-value-none-icon {
width: 1em;
height: 1em;
display: inline-block;
cursor: pointer;
overflow: visible;
}
.ai-value-none-icon * {
transform-box: fill-box;
}
.ai-value-none-icon.no-hover * {
transform: none;
opacity: 1;
animation: none;
}
.ai-value-none-icon .slash {
stroke-dasharray: 16;
}
.ai-value-none-icon:not(.no-hover):hover .slash {
animation: ai-value-none-draw 700ms ease-in-out;
}
@keyframes ai-value-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="ring" fillRule="evenodd" d="M7.49915 0.877045C11.1566 0.877045 14.1218 3.84178 14.1222 7.49911C14.1222 11.1568 11.1568 14.1222 7.49915 14.1222C3.84181 14.1218 0.877075 11.1565 0.877075 7.49911C0.877487 3.84203 3.84206 0.877456 7.49915 0.877045ZM7.49915 1.82626C4.36674 1.82667 1.82671 4.3667 1.82629 7.49911C1.82629 10.6319 4.36648 13.1716 7.49915 13.172C10.6321 13.172 13.172 10.6321 13.172 7.49911C13.1716 4.36645 10.6319 1.82626 7.49915 1.82626Z" fill="currentColor"/>
<path className="slash" d="M12.6466 1.64658L1.64658 12.6466" stroke="currentColor" strokeWidth="1" strokeLinecap="round"/>
</svg>
</>
);
}