Skip to content

ButterIX v1 is out: versions, multiple languages, Ask AI, and a per-site MCP server, all built in. →

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:

SourceWritten asCount
Lucidelucide:rocketAbout 2,100
Font Awesome Free Solidfa-solid fa-rocket, or just rocketAbout 1,400
Font Awesome Free Regularfa-regular fa-bellAbout 170
Font Awesome Free Brandsfa-brands fa-githubAbout 570
Imagehttps://…, 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.

Props

iconiconRequired
A Font Awesome name, lucide:<name>, an image URL, or <svg>.
sizenumber | string
Up to 12 it counts in 4px steps (4 = 16px); above 12 it's pixels; CSS lengths are used as is.
colorcolor
Color (for both light and dark mode).
lightModeColor / darkModeColorcolor
Color for light / dark mode respectively.
iconTypesolid | regular | brandsDefault 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.