Skip to content

pantoken / formats/icons/src / PantokenIcon

Rhyngwyneb: PantokenIcon

Bêta

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

Eiddo

name

name: string

Bêta

Enw'r eicon, heb y rhagddodiad --instui-icon- (e.e. arrow-left).


dataUri

dataUri: string

Bêta

Gwerth url('data:image/svg+xml;utf8,…'), fel y'i storir yn yr IR.


svg

svg: string

Bêta

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

Bêta

Y SVG viewBox, pan fo'n hysbys.


bidirectional

bidirectional: boolean

Bêta

A yw'r eicon yn troi'n llorweddol mewn cyd-destunau o dde i'r chwith.


source?

optional source?: "custom" | "lucide"

Bêta

Tarddiad y glif.