← Back

Align Bottom

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

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

.ai-align-bottom-icon * {
  transform-box: fill-box;
  transition: transform 320ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 220ms ease;
}

.ai-align-bottom-icon .block {
  transform-origin: center bottom;
}
.ai-align-bottom-icon .rail {
  transform-origin: center;
}

.ai-align-bottom-icon:not(.no-hover):hover .block {
  animation: ai-align-bottom-motion-1 700ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ai-align-bottom-icon:not(.no-hover):hover .rail {
  animation: ai-align-bottom-motion-2 700ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

@keyframes ai-align-bottom-motion-1 {
  0%,
  100% {
    transform: none;
  }
  52% {
    transform: translateY(0.75px) scaleY(0.94);
  }
}

@keyframes ai-align-bottom-motion-2 {
  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="rail" d="M1.5 14.5H13.5" stroke="currentColor" strokeWidth="1" strokeLinecap="round"/>
        <rect className="block" x="6" y="2" width="3" height="12" rx="0.7" fill="currentColor"/>
      </svg>
    </>
  );
}