← Back

Pilcrow

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

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

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

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

.ai-pilcrow-icon .pilcrow {
  transform-box: view-box;
  transform-origin: 7.5px 12.5px;
}

.ai-pilcrow-icon:not(.no-hover):hover .pilcrow {
  animation: ai-pilcrow-bob 700ms ease-in-out;
}

@keyframes ai-pilcrow-bob {
  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="pilcrow" fillRule="evenodd" clipRule="evenodd" d="M3 5.5C3 7.983 4.99169 9 7 9V12.5C7 12.7761 7.22386 13 7.5 13C7.77614 13 8 12.7761 8 12.5V9V3.0998H9V12.5C9 12.7761 9.22386 13 9.5 13C9.77614 13 10 12.7761 10 12.5V3.0998H11.5L11.6113 3.08906C11.8617 3.03762 12.0498 2.81564 12.0498 2.55C12.0498 2.28436 11.8617 2.06238 11.6113 2.01094L11.5 2.0002H9.51411C9.50942 2.00007 9.50472 2 9.5 2C9.49528 2 9.49058 2.00007 9.48589 2.0002H8V2H7.5H7C4.99169 2 3 3.017 3 5.5Z" fill="currentColor"/>
      </svg>
    </>
  );
}