krz-icons logo

Getting started

Props

PropTypeDefaultDescription
sizenumber | string24Width and height
colorstring"currentColor"Stroke color
strokeWidthnumber | string1Stroke width
absoluteStrokeWidthbooleanfalseKeep the stroke width the same at any size
fillstring"none"Fill color
classNamestring—Extra classes, added after krz-icon
styleCSSProperties—Inline styles
titlestring—Accessible label (sets role="img" instead of hiding the icon from screen readers)

All other SVG props (className, style, onClick, ref, …) are passed through to the <svg> element. Every icon has the krz-icon class.