Text Align Left
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 text-align-left --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 TextAlignLeftIcon({ disableHover, className }: Props) {
const classes = [
"ai-text-align-left-icon",
disableHover ? "no-hover" : "",
className ?? "",
]
.filter(Boolean)
.join(" ");
return (
<>
<style>{`
.ai-text-align-left-icon {
width: 1em;
height: 1em;
display: inline-block;
cursor: pointer;
overflow: visible;
}
.ai-text-align-left-icon * {
transform-box: fill-box;
}
.ai-text-align-left-icon.no-hover * {
transform: none;
opacity: 1;
animation: none;
}
.ai-text-align-left-icon .line-1,
.ai-text-align-left-icon .line-2,
.ai-text-align-left-icon .line-3 {
transform-origin: left center;
}
.ai-text-align-left-icon:not(.no-hover):hover .line-1 {
animation: ai-text-align-left-pulse 700ms ease-in-out;
}
.ai-text-align-left-icon:not(.no-hover):hover .line-2 {
animation: ai-text-align-left-pulse 700ms ease-in-out 100ms;
}
.ai-text-align-left-icon:not(.no-hover):hover .line-3 {
animation: ai-text-align-left-pulse 700ms ease-in-out 200ms;
}
@keyframes ai-text-align-left-pulse {
0%, 100% { transform: scaleX(1); }
50% { transform: scaleX(0.92); }
}
`}</style>
<svg
xmlns="http://www.w3.org/2000/svg"
className={classes}
viewBox="0 0 15 15"
fill="none"
>
<path className="line-3" d="M10.5 10C10.7761 10 11 10.2239 11 10.5C11 10.7761 10.7761 11 10.5 11H2.5C2.22386 11 2 10.7761 2 10.5C2 10.2239 2.22386 10 2.5 10H10.5Z" fill="currentColor"/>
<path className="line-2" d="M7.5 7C7.77614 7 8 7.22386 8 7.5C8 7.77614 7.77614 8 7.5 8H2.5C2.22386 8 2 7.77614 2 7.5C2 7.22386 2.22386 7 2.5 7H7.5Z" fill="currentColor"/>
<path className="line-1" d="M12.5 4C12.7761 4 13 4.22386 13 4.5C13 4.77614 12.7761 5 12.5 5H2.5C2.22386 5 2 4.77614 2 4.5C2 4.22386 2.22386 4 2.5 4H12.5Z" fill="currentColor"/>
</svg>
</>
);
}