Dot Solid
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 dot-solid --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 DotSolidIcon({ disableHover, className }: Props) {
const classes = [
"ai-dot-solid-icon",
disableHover ? "no-hover" : "",
className ?? "",
]
.filter(Boolean)
.join(" ");
return (
<>
<style>{`
.ai-dot-solid-icon {
width: 1em;
height: 1em;
display: inline-block;
cursor: pointer;
overflow: visible;
}
.ai-dot-solid-icon * {
transform-box: fill-box;
}
.ai-dot-solid-icon.no-hover * {
transform: none;
opacity: 1;
animation: none;
}
.ai-dot-solid-icon .dot { transform-origin: center; }
.ai-dot-solid-icon:not(.no-hover):hover .dot {
animation: ai-dot-solid-pulse 700ms ease-in-out;
}
@keyframes ai-dot-solid-pulse {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.3); }
}
`}</style>
<svg
xmlns="http://www.w3.org/2000/svg"
className={classes}
viewBox="0 0 15 15"
fill="none"
>
<path className="dot" d="M9.875 7.5C9.875 8.81168 8.81168 9.875 7.5 9.875C6.18832 9.875 5.125 8.81168 5.125 7.5C5.125 6.18832 6.18832 5.125 7.5 5.125C8.81168 5.125 9.875 6.18832 9.875 7.5Z" fill="currentColor"/>
</svg>
</>
);
}