Skip to content

pantoken / formats/icons/src / PantokenIcon

Rajapinta: PantokenIcon

Beta

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

Ominaisuudet

name

name: string

Beta

Ikonin nimi ilman --instui-icon--etuliitettä (esim. arrow-left).


dataUri

dataUri: string

Beta

url('data:image/svg+xml;utf8,…')-arvo, kuten se on tallennettu IR:ään.


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:n viewBox, jos se on tiedossa.


bidirectional

bidirectional: boolean

Beta

Kertoo, kääntyykö kuvake vaakasuunnassa oikealta vasemmalle -konteksteissa.


source?

optional source?: "custom" | "lucide"

Beta

Glyfin alkuperä.