Icon
<Icon> renders an inline icon from Font Awesome, Lucide, an image or SVG.
An inline icon that scales with the text:
<Icon icon="lucide:rocket" /> <Icon icon="fa-solid fa-bolt" color="#F5A524" />
<Icon icon="lucide:heart" size={6} lightModeColor="#E5484D" darkModeColor="#FF6369" />
<Icon icon="fa-brands fa-github" size={32} />Available icons
Every icon prop, and the icon of navigation entries and pages, is written the same way:
| Source | Written as | Count |
|---|---|---|
| Lucide | lucide:rocket | About 2,100 |
| Font Awesome Free Solid | fa-solid fa-rocket, or just rocket | About 1,400 |
| Font Awesome Free Regular | fa-regular fa-bell | About 170 |
| Font Awesome Free Brands | fa-brands fa-github | About 570 |
| Image | https://…, or a file in the repository such as ./assets/icon.svg | — |
| SVG | <svg …>…</svg> | — |
A name on its own is looked up in Solid, Regular, Brands and then Lucide. Icons in the navigation can also sit in an outlined square; see Icon style. In the visual editor there are no names to remember: click the icon field, search, narrow by source and pick one, or paste an image URL or SVG.