Border Style
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-style --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 BorderStyleIcon({ disableHover, className }: Props) {
const classes = [
"ai-border-style-icon",
disableHover ? "no-hover" : "",
className ?? "",
]
.filter(Boolean)
.join(" ");
return (
<>
<style>{`
.ai-border-style-icon {
width: 1em;
height: 1em;
display: inline-block;
cursor: pointer;
overflow: visible;
}
.ai-border-style-icon * {
transform-box: fill-box;
}
.ai-border-style-icon:not(.no-hover):hover .row {
animation: ai-border-style-motion-1 700ms ease-in-out;
}
.ai-border-style-icon:not(.no-hover):hover .row-solid { animation-delay: 0ms; }
.ai-border-style-icon:not(.no-hover):hover .row-dashed { animation-delay: 120ms; }
.ai-border-style-icon:not(.no-hover):hover .row-dotted { animation-delay: 240ms; }
.ai-border-style-icon.no-hover * {
transform: none;
opacity: 1;
animation: none;
}
@keyframes ai-border-style-motion-1 {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.3;
}
}
`}</style>
<svg
xmlns="http://www.w3.org/2000/svg"
className={classes}
viewBox="0 0 15 15"
fill="none"
>
<path className="row row-solid" d="M1.5 3.5H13.5" stroke="currentColor" strokeWidth="1" strokeLinecap="round"/>
<path className="row row-dashed" d="M1.5 7.5H3.5M6.5 7.5H8.5M11.5 7.5H13.5" stroke="currentColor" strokeWidth="1" strokeLinecap="round"/>
<path className="row row-dotted" d="M1.5 11.5H13.5" stroke="currentColor" strokeWidth="1" strokeLinecap="round" stroke-dasharray="0 2"/>
</svg>
</>
);
}