← Back

Sewing Pin Solid

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

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

.ai-sewing-pin-solid-icon * {
  transform-box: fill-box;
}

.ai-sewing-pin-solid-icon.no-hover * {
  transform: none;
  opacity: 1;
  animation: none;
}

.ai-sewing-pin-solid-icon .pin {
  transform-origin: center top;
}

.ai-sewing-pin-solid-icon:not(.no-hover):hover .pin {
  animation: ai-sewing-pin-solid-press 700ms ease-in-out;
}

@keyframes ai-sewing-pin-solid-press {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(0.8px); }
}
`}</style>
      <svg
        xmlns="http://www.w3.org/2000/svg"
        className={classes}
        viewBox="0 0 15 15"
        fill="none"
      >
        <path className="pin" fillRule="evenodd" clipRule="evenodd" d="M10 3.5C10 4.70948 9.14112 5.71836 8 5.94999V13.5C8 13.7761 7.77614 14 7.5 14C7.22386 14 7 13.7761 7 13.5V5.94999C5.85888 5.71836 5 4.70948 5 3.5C5 2.11929 6.11929 1 7.5 1C8.88071 1 10 2.11929 10 3.5Z" fill="currentColor"/>
      </svg>
    </>
  );
}