← Back

Text Align Top

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

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

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

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

.ai-text-align-top-icon .arrow {
  transform-origin: center;
}

.ai-text-align-top-icon:not(.no-hover):hover .arrow {
  animation: ai-text-align-top-push 700ms ease-in-out;
}

@keyframes ai-text-align-top-push {
  0%, 50%, 100% { transform: translateY(0); }
  25%, 75% { transform: translateY(-1px); }
}
`}</style>
      <svg
        xmlns="http://www.w3.org/2000/svg"
        className={classes}
        viewBox="0 0 15 15"
        fill="none"
      >
        <path className="arrow" d="M3.49993 1.10001C3.60588 1.10011 3.70821 1.14227 3.78313 1.21719L5.78313 3.21719C5.93895 3.37344 5.93921 3.62752 5.78313 3.7836C5.62705 3.93968 5.37297 3.93942 5.21673 3.7836L3.90032 2.46719V9.5004C3.90011 9.721 3.72053 9.90058 3.49993 9.90079C3.27915 9.90079 3.09975 9.72113 3.09954 9.5004V2.46719L1.78313 3.7836L1.71966 3.83438C1.56456 3.93665 1.35336 3.91986 1.21673 3.7836C1.08013 3.647 1.06365 3.4359 1.16595 3.28067L1.21673 3.21719L3.21673 1.21719C3.29174 1.14218 3.39384 1.10001 3.49993 1.10001Z" fill="currentColor"/>
        <path className="lines" d="M14.4999 8.0004C14.7761 8.0004 14.9999 8.22425 14.9999 8.5004C14.9997 8.77636 14.7759 9.0004 14.4999 9.0004H8.49993C8.22396 9.00034 8.00014 8.77633 7.99993 8.5004C7.99993 8.22429 8.22383 8.00045 8.49993 8.0004H14.4999ZM14.4999 5.0004C14.7761 5.0004 14.9999 5.22425 14.9999 5.5004C14.9997 5.77636 14.7759 6.0004 14.4999 6.0004H8.49993C8.22396 6.00034 8.00014 5.77633 7.99993 5.5004C7.99993 5.22429 8.22383 5.00045 8.49993 5.0004H14.4999ZM14.4999 2.0004C14.7761 2.0004 14.9999 2.22425 14.9999 2.5004C14.9997 2.77636 14.7759 3.0004 14.4999 3.0004H8.49993C8.22396 3.00034 8.00014 2.77633 7.99993 2.5004C7.99993 2.22429 8.22383 2.00045 8.49993 2.0004H14.4999Z" fill="currentColor"/>
      </svg>
    </>
  );
}