---
title: "Icon"
subtitle: "<Icon> renders an inline icon from Font Awesome, Lucide, an image or SVG."
---

An inline icon that scales with the text:

```mdx
<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} />
```

<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](https://lucide.dev/icons) | `lucide:rocket` | About 2,100 |
| [Font Awesome Free](https://fontawesome.com/search?ic=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](../configuration/navigation.mdx#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.

## Props

<ParamField path="icon" type="icon" required>A Font Awesome name, `lucide:<name>`, an image URL, or `<svg>`.</ParamField>
<ParamField path="size" type="number | string">Up to 12 it counts in 4px steps (`4` = 16px); above 12 it's pixels; CSS lengths are used as is.</ParamField>
<ParamField path="color" type="color">Color (for both light and dark mode).</ParamField>
<ParamField path="lightModeColor / darkModeColor" type="color">Color for light / dark mode respectively.</ParamField>
<ParamField path="iconType" type="solid | regular | brands" default="solid">The Font Awesome style to use when `icon` is just a name: `solid`, `regular` (outline) or `brands`; `light`, `thin` and `duotone` show as outline. No effect when `icon` has full class names (such as `fa-regular fa-bell`) or is a `lucide:` icon.</ParamField>
