← Back

Linkedin Logo

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

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

.ai-linkedin-logo-icon * {
  transform-box: fill-box;
}

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

.ai-linkedin-logo-icon .logo {
  transform-origin: center;
}

.ai-linkedin-logo-icon:not(.no-hover):hover .logo {
  animation: ai-linkedin-logo-bounce 700ms ease-in-out;
}

@keyframes ai-linkedin-logo-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}
`}</style>
      <svg
        xmlns="http://www.w3.org/2000/svg"
        className={classes}
        viewBox="0 0 15 15"
        fill="none"
      >
        <path className="logo" d="M13 1C13.5523 1 14 1.44772 14 2V13C14 13.5523 13.5523 14 13 14H2C1.44772 14 1 13.5523 1 13V2C1 1.44772 1.44772 1 2 1H13ZM9.6748 5.85059C9.29545 5.83189 8.9175 5.91127 8.5791 6.08105C8.32209 6.21005 8.05222 6.50526 7.84473 7.01855H7.79199V6H6V12.0049H7.90625V8.81152C7.8787 8.48445 7.98312 8.06112 8.19727 7.80957C8.41141 7.5581 8.71797 7.49828 8.9502 7.46777H9.02246C9.62862 7.46777 10.0781 7.84339 10.0781 8.78906V12.0049H11.9844L12 8.35742C12 6.55255 10.8336 5.85071 9.6748 5.85059ZM3.0498 12H4.9502V6H3.0498V12ZM4 2.92969C3.40633 2.92969 2.92487 3.41123 2.9248 4.00488C2.9248 4.59859 3.4063 5.08008 4 5.08008C4.59371 5.08008 5.0752 4.59859 5.0752 4.00488C5.07513 3.41123 4.59367 2.92969 4 2.92969Z" fill="currentColor"/>
      </svg>
    </>
  );
}