Skip to main content
Use icons from Font Awesome, Lucide, Tabler, SVGs, external URLs, or files in your project to enhance your documentation.
Icon example

Inline icons

Icons appear inline when used within a sentence, paragraph, or heading. Use icons for decoration or to add visual emphasis.
Inline example

Properties

icon
string
required
The icon to display.Options:
  • Font Awesome icon name, if you have the icons.library property set to fontawesome in your docs.json
  • Lucide icon name, if you have the icons.library property set to lucide in your docs.json
  • Tabler icon name, if you have the icons.library property set to tabler in your docs.json
  • URL to an externally hosted icon
  • Path to an icon file in your project
iconType
string
The Font Awesome icon style. Only used with Font Awesome icons.Options: regular, solid, light, thin, sharp-solid, duotone, brands.
color
string
The color of the icon as a hex code (for example, #FF5733).
size
number
The size of the icon in pixels.
className
string
Custom CSS class name to apply to the icon.