Skip to main content

Module icons

Module icons 

Source
Expand description

§icons — this renderer’s canonical ICON_NAME → glyph mapping

The canonical vocabulary is the protocol (pathland_core::icon, spec/ICONS.md) — the spec never lists a renderer’s glyphs. This module is the web renderer’s own mapping: a canonical name → a filled Remix Icon <path> (vendored from Remix Icon v4.9.1, Apache-2.0 — see THIRD_PARTY_NOTICES.md). It is the single source both the SSR renderer and (via pathland-ts-codegen → generated/icons.ts) the DOM client consume, so the two cannot drift.

Constants§

WEB_SVG_CLOSE
The closing </svg> tag.
WEB_SVG_OPEN
The filled <svg> opening tag (the catalog entries supply only the inner markup). fill="currentColor" tints the glyph via COLOR/foregroundStyle.

Functions§

web_fallback_svg
The fallback inner markup for an unknown/extension icon name.
web_inner
The canonical inner SVG markup (a single filled Remix <path>) for a canonical name (None for unknown names — fall back to web_fallback_svg). Callers wrap it in WEB_SVG_OPEN…WEB_SVG_CLOSE.