← Back

Text Align Justify

Install

npm install @svg-animated-icons/react

CLI

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
FlagDescription
--dest <dir>Destination directory (default: components/animated-icons)

Or copy the component with the CLI

CLI
npx @svg-animated-icons/cli add text-align-justify --react

Code

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 TextAlignJustifyIcon({ disableHover, className }: Props) {
  const classes = [
    "ai-text-align-justify-icon",
    disableHover ? "no-hover" : "",
    className ?? "",
  ]
    .filter(Boolean)
    .join(" ");

  return (
    <>
      <style>{`
.ai-text-align-justify-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  cursor: pointer;
  overflow: visible;
}

.ai-text-align-justify-icon * {
  transform-box: fill-box;
}

.ai-text-align-justify-icon.no-hover * {
  transform: none;
  opacity: 1;
  animation: none;
}

.ai-text-align-justify-icon .line-1,
.ai-text-align-justify-icon .line-2,
.ai-text-align-justify-icon .line-3 {
  transform-origin: center;
}

.ai-text-align-justify-icon:not(.no-hover):hover .line-1 {
  animation: ai-text-align-justify-slide 700ms ease-in-out;
}

.ai-text-align-justify-icon:not(.no-hover):hover .line-2 {
  animation: ai-text-align-justify-slide 700ms ease-in-out 100ms;
}

.ai-text-align-justify-icon:not(.no-hover):hover .line-3 {
  animation: ai-text-align-justify-slide 700ms ease-in-out 200ms;
}

@keyframes ai-text-align-justify-slide {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(0.8px); }
}
`}</style>
      <svg
        xmlns="http://www.w3.org/2000/svg"
        className={classes}
        viewBox="0 0 15 15"
        fill="none"
      >
        <path className="line-3" d="M12.6006 10.0098C12.8286 10.0563 13 10.2583 13 10.5C13 10.7417 12.8286 10.9437 12.6006 10.9902L12.5 11H2.5C2.22386 11 2 10.7761 2 10.5C2 10.2239 2.22386 10 2.5 10H12.5L12.6006 10.0098Z" fill="currentColor"/>
        <path className="line-2" d="M12.6006 7.00977C12.8286 7.05629 13 7.25829 13 7.5C13 7.74171 12.8286 7.94371 12.6006 7.99023L12.5 8H2.5C2.22386 8 2 7.77614 2 7.5C2 7.22386 2.22386 7 2.5 7H12.5L12.6006 7.00977Z" fill="currentColor"/>
        <path className="line-1" d="M12.6006 4.00977C12.8286 4.05629 13 4.25829 13 4.5C13 4.74171 12.8286 4.94371 12.6006 4.99023L12.5 5H2.5C2.22386 5 2 4.77614 2 4.5C2 4.22386 2.22386 4 2.5 4H12.5L12.6006 4.00977Z" fill="currentColor"/>
      </svg>
    </>
  );
}