Icon
Draws a Hugeicons glyph as an svg in the colour of the text around it, 16px by default, hidden from screen readers unless it is named.
Usage
Examples
Sizes
size is its width and height in pixels, 16 by default.
Stroke width
strokeWidth sets how heavy its lines are, in the glyph's 24 units; without it they keep the 1.5 they are drawn at.
Absolute stroke width
absoluteStrokeWidth keeps a strokeWidth the same number of pixels thick at every size, in the lower row, where by default the lines scale with the glyph, as in the upper one.
Alt icon
altIcon is a second glyph that showAlt draws in place of the first, such as a tick for a moment after copying, beside one showing its own glyph as it does by default.
API Reference
Icon
IconProps ยท components/Icon/Icon.types.tsIt also takes the props of @hugeicons/react HugeiconsIcon.