Row 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 row-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 RowSpacingIcon({ disableHover, className }: Props) {
const classes = [
"ai-row-spacing-icon",
disableHover ? "no-hover" : "",
className ?? "",
]
.filter(Boolean)
.join(" ");
return (
<>
<style>{`
.ai-row-spacing-icon {
width: 1em;
height: 1em;
display: inline-block;
cursor: pointer;
overflow: visible;
}
.ai-row-spacing-icon * {
transform-box: fill-box;
}
.ai-row-spacing-icon.no-hover * {
transform: none;
opacity: 1;
animation: none;
}
.ai-row-spacing-icon .arrows {
transform-box: view-box;
transform-origin: 7.5px 7.5px;
}
.ai-row-spacing-icon:not(.no-hover):hover .arrows {
animation: ai-row-spacing-stretch 700ms ease-in-out;
}
@keyframes ai-row-spacing-stretch {
0%, 100% { transform: scaleY(1); }
50% { transform: scaleY(1.15); }
}
`}</style>
<svg
xmlns="http://www.w3.org/2000/svg"
className={classes}
viewBox="0 0 15 15"
fill="none"
>
<path className="arrows" d="M7.49994 9.05003C7.74839 9.05003 7.95 9.25181 7.95013 9.50022V12.9133L9.18158 11.6819C9.35732 11.5061 9.64256 11.5061 9.8183 11.6819C9.99403 11.8576 9.99403 12.1428 9.8183 12.3186L7.8183 14.3186C7.73392 14.4029 7.6192 14.4504 7.49994 14.4504C7.41033 14.4504 7.32336 14.4233 7.24994 14.3742L7.18158 14.3186L5.18158 12.3186L5.12396 12.2483C5.0085 12.0736 5.02791 11.8357 5.18158 11.6819C5.33541 11.528 5.5733 11.5088 5.74799 11.6242L5.8183 11.6819L7.04974 12.9133V9.50022C7.04988 9.25187 7.25158 9.05013 7.49994 9.05003ZM7.25189 0.624246C7.42658 0.508733 7.66445 0.52802 7.8183 0.681864L9.8183 2.68186L9.87592 2.75218C9.99139 2.92686 9.97213 3.16475 9.8183 3.31858C9.66445 3.47225 9.42651 3.49167 9.25189 3.3762L9.18158 3.31858L7.95013 2.08714V5.50022C7.95003 5.74866 7.7484 5.95042 7.49994 5.95042C7.25156 5.95032 7.04985 5.7486 7.04974 5.50022V2.08714L5.8183 3.31858C5.64255 3.49413 5.35725 3.49425 5.18158 3.31858C5.00591 3.14291 5.00603 2.85761 5.18158 2.68186L7.18158 0.681864L7.25189 0.624246Z" fill="currentColor"/>
<path className="line" d="M13.6005 7.00999C13.8285 7.05652 13.9999 7.25851 13.9999 7.50022C13.9999 7.74193 13.8285 7.94393 13.6005 7.99046L13.4999 8.00022H1.49994C1.2238 8.00022 0.999946 7.77636 0.999939 7.50022C0.999939 7.22408 1.2238 7.00022 1.49994 7.00022H13.4999L13.6005 7.00999Z" fill="currentColor"/>
</svg>
</>
);
}