Chat Bubble
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 chat-bubble --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 ChatBubbleIcon({ disableHover, className }: Props) {
const classes = [
"ai-chat-bubble-icon",
disableHover ? "no-hover" : "",
className ?? "",
]
.filter(Boolean)
.join(" ");
return (
<>
<style>{`
.ai-chat-bubble-icon {
width: 1em;
height: 1em;
display: inline-block;
cursor: pointer;
overflow: visible;
}
.ai-chat-bubble-icon * {
transform-box: fill-box;
}
.ai-chat-bubble-icon.no-hover * {
transform: none;
opacity: 1;
animation: none;
}
.ai-chat-bubble-icon .dot {
transform-origin: center;
}
.ai-chat-bubble-icon:not(.no-hover):hover .dot {
animation: ai-chat-bubble-bounce 700ms ease-in-out;
}
.ai-chat-bubble-icon:not(.no-hover):hover .dot-1 { animation-delay: 0ms; }
.ai-chat-bubble-icon:not(.no-hover):hover .dot-2 { animation-delay: 100ms; }
.ai-chat-bubble-icon:not(.no-hover):hover .dot-3 { animation-delay: 200ms; }
@keyframes ai-chat-bubble-bounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-1.25px); }
}
`}</style>
<svg
xmlns="http://www.w3.org/2000/svg"
className={classes}
viewBox="0 0 15 15"
fill="none"
>
<path className="bubble" d="M2 4.5C2 3.4 2.9 2.5 4 2.5H11C12.1 2.5 13 3.4 13 4.5V9C13 10.1 12.1 11 11 11H7L4.5 13V11H4C2.9 11 2 10.1 2 9V4.5Z" stroke="currentColor" strokeWidth="1" strokeLinejoin="round"/>
<circle className="dot dot-1" cx="5.5" cy="6.75" r="0.7" fill="currentColor"/>
<circle className="dot dot-2" cx="7.5" cy="6.75" r="0.7" fill="currentColor"/>
<circle className="dot dot-3" cx="9.5" cy="6.75" r="0.7" fill="currentColor"/>
</svg>
</>
);
}