Skip to content

pantoken-root / formats/icons/src / PantokenIcon

Interface: PantokenIcon ​

Beta

A pantoken icon, derived from an <image> token.

Properties ​

name ​

name: string

Beta

The icon name, without the --instui-icon- prefix (e.g. arrow-left).


dataUri ​

dataUri: string

Beta

The …url('data:image/svg+xml;utf8,…') value, as stored in the IR.


svg ​

svg: string

Beta

The decoded inline SVG markup, stripped of <script> elements and event-handler attributes. Originates from the vendored IR (pinned upstream). Safe for trusted injection contexts; consumers should not treat this as safe for injection into attacker-controlled HTML.


viewBox? ​

optional viewBox?: string

Beta

The SVG viewBox, when known.


bidirectional ​

bidirectional: boolean

Beta

Whether the icon flips horizontally in right-to-left contexts.


source? ​

optional source?: "custom" | "lucide"

Beta

The glyph origin.