Stretch Vertically
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 stretch-vertically --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 StretchVerticallyIcon({ disableHover, className }: Props) {
const classes = [
"ai-stretch-vertically-icon",
disableHover ? "no-hover" : "",
className ?? "",
]
.filter(Boolean)
.join(" ");
return (
<>
<style>{`
.ai-stretch-vertically-icon {
width: 1em;
height: 1em;
display: inline-block;
cursor: pointer;
overflow: visible;
}
.ai-stretch-vertically-icon * {
transform-box: fill-box;
}
.ai-stretch-vertically-icon.no-hover * {
transform: none;
opacity: 1;
animation: none;
}
.ai-stretch-vertically-icon .shape {
transform-box: view-box;
transform-origin: 7.5px 7.5px;
}
.ai-stretch-vertically-icon:not(.no-hover):hover .shape {
animation: ai-stretch-vertically-stretch 700ms ease-in-out;
}
@keyframes ai-stretch-vertically-stretch {
0%, 100% { transform: scaleY(1); }
50% { transform: scaleY(1.1); }
}
`}</style>
<svg
xmlns="http://www.w3.org/2000/svg"
className={classes}
viewBox="0 0 15 15"
fill="none"
>
<path className="shape" d="M13.4999 14C13.776 14 13.9999 14.2239 13.9999 14.5C13.9999 14.7761 13.776 15 13.4999 15H1.49988C1.22373 15 0.999877 14.7761 0.999877 14.5C0.999877 14.2239 1.22373 14 1.49988 14H5.99987V1.00001H1.49988C1.22373 1.00001 0.999877 0.776157 0.999877 0.500015C0.999877 0.223873 1.22373 1.52688e-05 1.49988 1.52588e-05H13.4999C13.776 1.5452e-05 13.9999 0.223873 13.9999 0.500015C13.9999 0.776157 13.776 1.00001 13.4999 1.00001H8.99987V14H13.4999Z" fill="currentColor"/>
</svg>
</>
);
}