Skip to content

icons.ts#

View Markdown

Source

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.

View source

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>

View source

Parameters

  • input RenderSelfHostedIconsCssOptions

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>

View source

Parameters

  • input WriteSelfHostedIconsOptions

Returns

Promise<WriteSelfHostedIconsResult>