← Back

Drag Handle Dots 1

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

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

.ai-drag-handle-dots-1-icon * {
  transform-box: fill-box;
}

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

.ai-drag-handle-dots-1-icon .dots {
  transform-origin: center;
}

.ai-drag-handle-dots-1-icon:not(.no-hover):hover .dots {
  animation: ai-drag-handle-dots-1-wiggle 700ms ease-in-out;
}

@keyframes ai-drag-handle-dots-1-wiggle {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-1.25px); }
  75% { transform: translateX(1.25px); }
}
`}</style>
      <svg
        xmlns="http://www.w3.org/2000/svg"
        className={classes}
        viewBox="0 0 15 15"
        fill="none"
      >
        <g className="dots">
          <circle cx="4.5" cy="2.5" r=".6" fill="currentColor"/>
          <circle cx="4.5" cy="4.5" r=".6" fill="currentColor"/>
          <circle cx="4.5" cy="6.499" r=".6" fill="currentColor"/>
          <circle cx="4.5" cy="8.499" r=".6" fill="currentColor"/>
          <circle cx="4.5" cy="10.498" r=".6" fill="currentColor"/>
          <circle cx="4.5" cy="12.498" r=".6" fill="currentColor"/>
          <circle cx="6.5" cy="2.5" r=".6" fill="currentColor"/>
          <circle cx="6.5" cy="4.5" r=".6" fill="currentColor"/>
          <circle cx="6.5" cy="6.499" r=".6" fill="currentColor"/>
          <circle cx="6.5" cy="8.499" r=".6" fill="currentColor"/>
          <circle cx="6.5" cy="10.498" r=".6" fill="currentColor"/>
          <circle cx="6.5" cy="12.498" r=".6" fill="currentColor"/>
          <circle cx="8.499" cy="2.5" r=".6" fill="currentColor"/>
          <circle cx="8.499" cy="4.5" r=".6" fill="currentColor"/>
          <circle cx="8.499" cy="6.499" r=".6" fill="currentColor"/>
          <circle cx="8.499" cy="8.499" r=".6" fill="currentColor"/>
          <circle cx="8.499" cy="10.498" r=".6" fill="currentColor"/>
          <circle cx="8.499" cy="12.498" r=".6" fill="currentColor"/>
          <circle cx="10.499" cy="2.5" r=".6" fill="currentColor"/>
          <circle cx="10.499" cy="4.5" r=".6" fill="currentColor"/>
          <circle cx="10.499" cy="6.499" r=".6" fill="currentColor"/>
          <circle cx="10.499" cy="8.499" r=".6" fill="currentColor"/>
          <circle cx="10.499" cy="10.498" r=".6" fill="currentColor"/>
          <circle cx="10.499" cy="12.498" r=".6" fill="currentColor"/>
        </g>
      </svg>
    </>
  );
}