Border Left
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-left --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 BorderLeftIcon({ disableHover, className }: Props) {
const classes = [
"ai-border-left-icon",
disableHover ? "no-hover" : "",
className ?? "",
]
.filter(Boolean)
.join(" ");
return (
<>
<style>{`
.ai-border-left-icon {
width: 1em;
height: 1em;
display: inline-block;
cursor: pointer;
overflow: visible;
}
.ai-border-left-icon * {
transform-box: fill-box;
}
.ai-border-left-icon .left {
stroke-dasharray: 13;
}
.ai-border-left-icon:not(.no-hover):hover .left {
animation: ai-border-left-draw 700ms ease-out;
}
.ai-border-left-icon.no-hover * {
transform: none;
opacity: 1;
animation: none;
}
@keyframes ai-border-left-draw {
from {
stroke-dashoffset: 13;
}
to {
stroke-dashoffset: 0;
}
}
`}</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="left" d="M1.5 14V1" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round"/>
</svg>
</>
);
}