Align Baseline
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-baseline --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 AlignBaselineIcon({ disableHover, className }: Props) {
const classes = [
"ai-align-baseline-icon",
disableHover ? "no-hover" : "",
className ?? "",
]
.filter(Boolean)
.join(" ");
return (
<>
<style>{`
.ai-align-baseline-icon {
width: 1em;
height: 1em;
display: inline-block;
cursor: pointer;
overflow: visible;
}
.ai-align-baseline-icon * {
transform-box: fill-box;
transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 220ms ease;
}
.ai-align-baseline-icon .arrow,
.ai-align-baseline-icon .letter {
transform-origin: center bottom;
}
.ai-align-baseline-icon .baseline {
transform-origin: center;
}
.ai-align-baseline-icon:not(.no-hover):hover .arrow {
animation: ai-align-baseline-motion-1 700ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ai-align-baseline-icon:not(.no-hover):hover .letter {
animation: ai-align-baseline-motion-2 700ms cubic-bezier(0.34, 1.56, 0.64, 1);
animation-delay: 45ms;
}
.ai-align-baseline-icon:not(.no-hover):hover .baseline {
animation: ai-align-baseline-motion-3 700ms cubic-bezier(0.34, 1.56, 0.64, 1);
animation-delay: 90ms;
}
.ai-align-baseline-icon.no-hover * {
transform: none;
opacity: 1;
animation: none;
}
@keyframes ai-align-baseline-motion-1 {
0%,
100% {
transform: none;
}
52% {
transform: translateY(0.8px);
}
}
@keyframes ai-align-baseline-motion-2 {
0%,
100% {
transform: none;
}
52% {
transform: translateY(0.45px);
}
}
@keyframes ai-align-baseline-motion-3 {
0%,
100% {
transform: none;
}
52% {
transform: scaleX(1.06);
}
}
`}</style>
<svg
xmlns="http://www.w3.org/2000/svg"
className={classes}
viewBox="0 0 15 15"
fill="none"
>
<path className="baseline" d="M1 13.5H14" stroke="currentColor" strokeWidth="1" strokeLinecap="round"/>
<path className="arrow" d="M2.5 2.5V10.2M0.9 8.6L2.5 10.2L4.1 8.6" stroke="currentColor" strokeWidth="1" strokeLinecap="round" strokeLinejoin="round"/>
<path className="letter" d="M7.25 10.55L10.5 2.3L13.75 10.55M8.45 7.65H12.55" stroke="currentColor" strokeWidth="1" strokeLinecap="round" strokeLinejoin="round"/>
</svg>
</>
);
}