Question Mark
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 question-mark --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 QuestionMarkIcon({ disableHover, className }: Props) {
const classes = [
"ai-question-mark-icon",
disableHover ? "no-hover" : "",
className ?? "",
]
.filter(Boolean)
.join(" ");
return (
<>
<style>{`
.ai-question-mark-icon {
width: 1em;
height: 1em;
display: inline-block;
cursor: pointer;
overflow: visible;
}
.ai-question-mark-icon * {
transform-box: fill-box;
}
.ai-question-mark-icon.no-hover * {
transform: none;
opacity: 1;
animation: none;
}
.ai-question-mark-icon .mark {
transform-box: view-box;
transform-origin: 7.5px 7.5px;
}
.ai-question-mark-icon:not(.no-hover):hover .mark {
animation: ai-question-mark-wobble 700ms ease-in-out;
}
@keyframes ai-question-mark-wobble {
0%, 100% { transform: rotate(0); }
30% { transform: rotate(-10deg); }
70% { transform: rotate(10deg); }
}
`}</style>
<svg
xmlns="http://www.w3.org/2000/svg"
className={classes}
viewBox="0 0 15 15"
fill="none"
>
<path className="mark" d="M7.50024 11.6071C7.98326 11.6072 8.37501 11.9991 8.37524 12.4821C8.37524 12.9653 7.9834 13.357 7.50024 13.3571C7.01699 13.3571 6.62524 12.9653 6.62524 12.4821C6.62547 11.999 7.01714 11.6071 7.50024 11.6071ZM7.50024 0.77504C9.21883 0.775142 11.0754 2.12786 11.0754 4.10023C11.0754 5.75307 10.1328 6.57417 9.38208 7.23988C8.62999 7.90686 8.07544 8.41581 8.07544 9.50063C8.07511 9.81785 7.81752 10.0747 7.50024 10.0748C7.18288 10.0748 6.92538 9.81791 6.92505 9.50063C6.92505 7.85828 7.87058 7.04271 8.61841 6.37953C9.36764 5.7151 9.92498 5.19868 9.92505 4.10023C9.92505 2.91132 8.74295 1.92553 7.50024 1.92543C6.25747 1.92543 5.07544 2.91126 5.07544 4.10023C5.07533 4.41764 4.81765 4.67532 4.50024 4.67543C4.18275 4.67543 3.92516 4.4177 3.92505 4.10023C3.92505 2.12779 5.7816 0.77504 7.50024 0.77504Z" fill="currentColor"/>
</svg>
</>
);
}