Frequently asked questions
›Why replace colors with currentColor?
currentColor makes the icon take the CSS color of its parent, so it changes with hover states, dark mode or a text-red-500 class without editing the SVG. For multicolor illustrations, turn the option off.
›How do I use the component?
Import it and render it like any element: a size prop sets width and height, and every other prop (className, aria-label, onClick…) goes straight to the svg element.
›Is it the same as SVGR?
It covers the common case SVGR is used for (icons): camelCase attributes, a props spread, size and currentColor. It runs entirely in your browser, without a Node.js build step.