Align Right
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 align-right --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 AlignRightIcon({ disableHover, className }: Props) {
const classes = [
"ai-align-right-icon",
disableHover ? "no-hover" : "",
className ?? "",
]
.filter(Boolean)
.join(" ");
return (
<>
<style>{`
.ai-align-right-icon {
width: 1em;
height: 1em;
display: inline-block;
cursor: pointer;
overflow: visible;
}
.ai-align-right-icon * {
transform-box: fill-box;
transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 220ms ease;
}
.ai-align-right-icon .block {
transform-origin: right center;
}
.ai-align-right-icon .rail {
transform-origin: center;
}
.ai-align-right-icon:not(.no-hover):hover .block {
animation: ai-align-right-motion-1 700ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ai-align-right-icon:not(.no-hover):hover .rail {
animation: ai-align-right-motion-2 700ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ai-align-right-icon.no-hover * {
transform: none;
opacity: 1;
animation: none;
}
@keyframes ai-align-right-motion-1 {
0%,
100% {
transform: none;
}
52% {
transform: translateX(0.8px) scaleX(0.94);
}
}
@keyframes ai-align-right-motion-2 {
0%,
100% {
transform: none;
}
52% {
transform: scaleY(1.08);
}
}
`}</style>
<svg
xmlns="http://www.w3.org/2000/svg"
className={classes}
viewBox="0 0 15 15"
fill="none"
>
<path className="rail" d="M14 1.5V13.5" stroke="currentColor" strokeWidth="1" strokeLinecap="round"/>
<rect className="block" x="2" y="6" width="12" height="3" rx="0.8" fill="currentColor"/>
</svg>
</>
);
}