icons.ts#
3 documented symbols. Read the signatures first, then expand each item for parameters, return types, and examples.
3
symbols
2
functions
1
modules
2
parameters
2
returns
Reference#
moduleiconsOpt-in self-hosted Iconify CSS for used and safelisted icons. Collection lookup stays on disk (@iconify-json/* / @iconi…
Opt-in self-hosted Iconify CSS for used and safelisted icons.
Collection lookup stays on disk (@iconify-json/* / @iconify/json). Theme embed injection composes with self-hosted font <link> tags.
fnrenderSelfHostedIconsCss(input: RenderSelfHostedIconsCssOptions): Promise<RenderSelfHostedIconsCssResult>Render resolved icon CSS. Missing collections or names become errors.
Render resolved icon CSS. Missing collections or names become errors.
Signature
export async function renderSelfHostedIconsCss(input: RenderSelfHostedIconsCssOptions): Promise<RenderSelfHostedIconsCssResult>Parameters
-
inputRenderSelfHostedIconsCssOptions
Returns
Promise<RenderSelfHostedIconsCssResult>
fnwriteSelfHostedIcons(input: WriteSelfHostedIconsOptions): Promise<WriteSelfHostedIconsResult>Copy resolved icon CSS into outDir. Missing collections or names become errors.
Copy resolved icon CSS into outDir. Missing collections or names become errors.
Signature
export async function writeSelfHostedIcons(input: WriteSelfHostedIconsOptions): Promise<WriteSelfHostedIconsResult>Parameters
-
inputWriteSelfHostedIconsOptions
Returns
Promise<WriteSelfHostedIconsResult>