square-pen

Animated React component — SquarePen / SquarePenIcon

Hover the square-pen icon above to see the default draw animation.

Import

Tree-shakable named import — only the icons you reference end up in your bundle.

import { SquarePen } from "lucide-motion";

Also exported as SquarePenIcon for the Lucide-suffix naming convention.

Quick start

Drop the component into your JSX. The default trigger plays the draw animation on hover.

import { SquarePen } from "lucide-motion";

<SquarePen size={32} />
Timing presets · hover to play
Snappy
duration={0.2} stagger={0}
Cinematic
duration={1.5} stagger={0.4}
Linear
easing="linear"
Spinner
trigger="mount" repeat={Infinity}
Tags
pencileditchangecreatedrawsketchdraftwriterwritingbiroinkmarkerfelt tipstationeryartist
Related icons

Raw node data

The icon's underlying SVG node tree — useful if you need to render or transform it yourself instead of using the component.

Show IconNode[]
[
  [
    "path",
    {
      "d": "M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"
    }
  ],
  [
    "path",
    {
      "d": "M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z"
    }
  ]
]