Icon
The <Icon> component displays Font Awesome icons in your documentation with support for all Font Awesome Pro styles.
Usage
Basic icon
Markdown
Variants
Sizes
Large icon
Markdown
Colors
Colored icon
Markdown
Font Awesome styles
Default (Solid)
Regular
Light
Thin
Duotone
Sharp Solid
Brands
Markdown
Properties
icon
Name of the Font Awesome icon (e.g., “heart” or “fa-solid fa-heart”)
color
Icon color (hex, RGB, or color name). Ignored if lightModeColor and darkModeColor are both set
darkModeColor
Icon color for dark mode (hex, RGB, or color name)
lightModeColor
Icon color for light mode (hex, RGB, or color name)
size
Size of the icon (width and height) calculated as size * 4 pixels (e.g., 4 = 16px, 8 = 32px).
className
Additional CSS classes to apply to the icon