Share 1
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 share-1 --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 Share1Icon({ disableHover, className }: Props) {
const classes = [
"ai-share-1-icon",
disableHover ? "no-hover" : "",
className ?? "",
]
.filter(Boolean)
.join(" ");
return (
<>
<style>{`
.ai-share-1-icon {
width: 1em;
height: 1em;
display: inline-block;
cursor: pointer;
overflow: visible;
}
.ai-share-1-icon * {
transform-box: fill-box;
}
.ai-share-1-icon.no-hover * {
transform: none;
opacity: 1;
animation: none;
}
.ai-share-1-icon .network {
transform-box: view-box;
transform-origin: 7.5px 7.5px;
}
.ai-share-1-icon:not(.no-hover):hover .network {
animation: ai-share-1-flow 700ms ease-in-out;
}
@keyframes ai-share-1-flow {
0%, 100% { transform: rotate(0); }
50% { transform: rotate(-10deg); }
}
`}</style>
<svg
xmlns="http://www.w3.org/2000/svg"
className={classes}
viewBox="0 0 15 15"
fill="none"
>
<path className="network" fillRule="evenodd" d="M1 7.50003C1 6.11932 2.11929 5.00003 3.5 5.00003C4.46036 5.00003 5.2922 5.54261 5.71094 6.33694L9.10449 4.21683C9.03664 3.98975 9 3.74917 9 3.50003C9 2.11932 10.1193 1.00003 11.5 1.00003C12.8807 1.00003 14 2.11932 14 3.50003C14 4.88074 12.8807 6.00003 11.5 6.00003C10.6915 6.00003 9.97456 5.61485 9.51758 5.01956L5.98437 7.22855C5.99401 7.31775 6 7.40826 6 7.50003C6 7.59213 5.99408 7.68297 5.98437 7.77249L9.51758 9.98148C9.97453 9.38583 10.6913 9.00003 11.5 9.00003C12.8807 9.00003 14 10.1193 14 11.5C14 12.8807 12.8807 14 11.5 14C10.1193 14 9 12.8807 9 11.5C9 11.2512 9.03681 11.011 9.10449 10.7842L5.71094 8.66409C5.29207 9.45801 4.46005 10 3.5 10C2.11929 10 1 8.88074 1 7.50003ZM10 3.50003C10 4.32846 10.6716 5.00003 11.5 5.00003C12.3284 5.00003 13 4.32846 13 3.50003C13 2.6716 12.3284 2.00003 11.5 2.00003C10.6716 2.00003 10 2.6716 10 3.50003ZM2 7.50003C2 8.32846 2.67157 9.00003 3.5 9.00003C4.32843 9.00003 5 8.32846 5 7.50003C5 6.6716 4.32843 6.00003 3.5 6.00003C2.67157 6.00003 2 6.6716 2 7.50003ZM11.5 13C12.3284 13 13 12.3285 13 11.5C13 10.6716 12.3284 10 11.5 10C10.6716 10 10 10.6716 10 11.5C10 12.3285 10.6716 13 11.5 13Z" fill="currentColor"/>
</svg>
</>
);
}