Skip to content

pantoken / formats/icons/src / PantokenIcon

接口: PantokenIcon

Beta

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

属性

name

name: string

Beta

图标名称,不包含 --instui-icon- 前缀(例如 arrow-left)。


dataUri

dataUri: string

Beta

IR 中存储的 url('data:image/svg+xml;utf8,…') 值。


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

已知时的 SVG viewBox


bidirectional

bidirectional: boolean

Beta

图标在从右到左的语境中是否水平翻转。


source?

optional source?: "custom" | "lucide"

Beta

字形来源。