Skip to Content

Icon

A wrapper around SVG elements to help control size, color and rotation.

Sizes

Rotation

Fill and stroke colors

Control SVG fill and stroke colors using the fillColor and strokeColor props.

Component props

NameTypeDescription
sizeIconSize"xs" | "sm" | "md" | "lg" | "xl" (default: "sm")
colorFontColorIcon color
rotatenumberRotation in degrees
strokeWidthStrokeWidth"0.5" | "1" | "1.5" | "2" | "3" | "4"
strokeColorStrokeColorSVG stroke color (semantic, Tailwind color, or color-shade)
fillColorFillColorSVG fill color (semantic, Tailwind color, or color-shade)