Drag Handle Dots 2
Install
npm install @svg-animated-icons/reactCLI
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| Flag | Description |
|---|---|
--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-2 --reactCode
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 DragHandleDots2Icon({ disableHover, className }: Props) {
const classes = [
"ai-drag-handle-dots-2-icon",
disableHover ? "no-hover" : "",
className ?? "",
]
.filter(Boolean)
.join(" ");
return (
<>
<style>{`
.ai-drag-handle-dots-2-icon {
width: 1em;
height: 1em;
display: inline-block;
cursor: pointer;
overflow: visible;
}
.ai-drag-handle-dots-2-icon * {
transform-box: fill-box;
}
.ai-drag-handle-dots-2-icon.no-hover * {
transform: none;
opacity: 1;
animation: none;
}
.ai-drag-handle-dots-2-icon .dots {
transform-origin: center;
}
.ai-drag-handle-dots-2-icon:not(.no-hover):hover .dots {
animation: ai-drag-handle-dots-2-wiggle 700ms ease-in-out;
}
@keyframes ai-drag-handle-dots-2-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="5.5" cy="3.5" r="1.125" fill="currentColor"/>
<circle cx="9.5" cy="3.5" r="1.125" fill="currentColor"/>
<circle cx="9.5" cy="7.5" r="1.125" fill="currentColor"/>
<circle cx="9.5" cy="11.5" r="1.125" fill="currentColor"/>
<circle cx="5.5" cy="11.5" r="1.125" fill="currentColor"/>
<circle cx="5.5" cy="7.5" r="1.125" fill="currentColor"/>
</g>
</svg>
</>
);
}