regex

Animated React component — Regex / RegexIcon

Hover the regex icon above to see the default draw animation.

Import

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

import { Regex } from "lucide-motion";

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

Quick start

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

import { Regex } from "lucide-motion";

<Regex 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
searchtextcode
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": "M17 3v10"
    }
  ],
  [
    "path",
    {
      "d": "m12.67 5.5 8.66 5"
    }
  ],
  [
    "path",
    {
      "d": "m12.67 10.5 8.66-5"
    }
  ],
  [
    "path",
    {
      "d": "M9 17a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h2a2 2 0 0 0 2-2v-2z"
    }
  ]
]