Border 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 border-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 BorderNoneIcon({ disableHover, className }: Props) {
const classes = [
"ai-border-none-icon",
disableHover ? "no-hover" : "",
className ?? "",
]
.filter(Boolean)
.join(" ");
return (
<>
<style>{`
.ai-border-none-icon {
width: 1em;
height: 1em;
display: inline-block;
cursor: pointer;
overflow: visible;
}
.ai-border-none-icon * {
transform-box: fill-box;
}
.ai-border-none-icon .side {
stroke-dasharray: 12;
stroke-dashoffset: 12;
}
.ai-border-none-icon:not(.no-hover):hover .side {
animation: ai-border-none-erase 700ms ease-in-out;
}
.ai-border-none-icon.no-hover * {
transform: none;
opacity: 1;
animation: none;
}
@keyframes ai-border-none-erase {
0% {
stroke-dashoffset: 0;
}
100% {
stroke-dashoffset: -12;
}
}
`}</style>
<svg
xmlns="http://www.w3.org/2000/svg"
className={classes}
viewBox="0 0 15 15"
fill="none"
>
<g className="frame" stroke="currentColor" strokeWidth="1" strokeLinecap="round" stroke-dasharray="0 2">
<rect x="1.5" y="1.5" width="12" height="12"/>
<path d="M1.5 7.5H13.5"/>
<path d="M7.5 1.5V13.5"/>
</g>
<path className="side side-left" d="M1.5 13.5V1.5" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round"/>
<path className="side side-top" d="M1.5 1.5H13.5" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round"/>
<path className="side side-right" d="M13.5 1.5V13.5" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round"/>
<path className="side side-bottom" d="M13.5 13.5H1.5" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round"/>
</svg>
</>
);
}