Column Spacing
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 column-spacing --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 ColumnSpacingIcon({ disableHover, className }: Props) {
const classes = [
"ai-column-spacing-icon",
disableHover ? "no-hover" : "",
className ?? "",
]
.filter(Boolean)
.join(" ");
return (
<>
<style>{`
.ai-column-spacing-icon {
width: 1em;
height: 1em;
display: inline-block;
cursor: pointer;
overflow: visible;
}
.ai-column-spacing-icon * {
transform-box: fill-box;
}
.ai-column-spacing-icon.no-hover * {
transform: none;
opacity: 1;
animation: none;
}
.ai-column-spacing-icon .arrow-left,
.ai-column-spacing-icon .arrow-right {
transform-origin: center;
}
.ai-column-spacing-icon:not(.no-hover):hover .arrow-left {
animation: ai-column-spacing-l 700ms ease-in-out;
}
.ai-column-spacing-icon:not(.no-hover):hover .arrow-right {
animation: ai-column-spacing-r 700ms ease-in-out;
}
@keyframes ai-column-spacing-l {
0%, 100% { transform: translateX(0); }
50% { transform: translateX(-1.5px); }
}
@keyframes ai-column-spacing-r {
0%, 100% { transform: translateX(0); }
50% { transform: translateX(1.5px); }
}
`}</style>
<svg
xmlns="http://www.w3.org/2000/svg"
className={classes}
viewBox="0 0 15 15"
fill="none"
>
<path className="divider" d="M7.5 1V14" stroke="currentColor" strokeWidth="1" strokeLinecap="round"/>
<path className="arrow-left" d="M2 7.5H5.5M3.5 6L2 7.5L3.5 9" stroke="currentColor" strokeWidth="1" strokeLinecap="round" strokeLinejoin="round"/>
<path className="arrow-right" d="M13 7.5H9.5M11.5 6L13 7.5L11.5 9" stroke="currentColor" strokeWidth="1" strokeLinecap="round" strokeLinejoin="round"/>
</svg>
</>
);
}