← Back

Sewing Pin Filled

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

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

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

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

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

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

@keyframes ai-sewing-pin-filled-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" d="M7.5 1C8.88071 1 10 2.11929 10 3.5C10 4.70943 9.14105 5.71753 8 5.94922V13.5C8 13.7761 7.77614 14 7.5 14C7.22386 14 7 13.7761 7 13.5V5.94922C5.85895 5.71753 5 4.70943 5 3.5C5 2.11929 6.11929 1 7.5 1Z" fill="currentColor"/>
      </svg>
    </>
  );
}