buildFaviconHref
A theme-colored fan favicon as a data URL.
buildFaviconHref(theme, title = '')Returns a data:image/svg+xml URL of the fan icon colored for light or dark; use it as the href of a <link rel="icon"> or an <img src>. It draws the same fan as `FanFavicon`, and the colors come from THEME_FAVICON_COLORS.
API
Parameters
theme'light' | 'dark'Which color set to use.
titlestringDefault:''Embedded in the SVG as its <title>.
| Prop | Type | Default | Description |
|---|---|---|---|
theme | 'light' | 'dark' | – | Which color set to use. |
title | string | '' | Embedded in the SVG as its <title>. |
Returns
hrefstringA data URL.
| Prop | Type | Default | Description |
|---|---|---|---|
href | string | – | A data URL. |
See also:FanFavicon