Skip to content

pantoken-root / tools/demo/src / ExampleSrcdocOptions

Gränssnitt: ExampleSrcdocOptions ​

Alternativ för buildExampleSrcdoc.

Egenskaper ​

cssUrls ​

cssUrls: readonly string[]

Stylesheet URLs to load into the iframe's <head> (tokens, components, utilities, icons, …).


scriptUrls? ​

optional scriptUrls?: readonly string[]

Webbläsarskript-URL:er som ska laddas efter exempelmarkeringen (interaktionspaket, vid behov).


card? ​

optional card?: boolean

Omslut html i den delade .pantoken-demo-card ytan (standard true)).


dir? ​

optional dir?: "ltr" | "rtl"

Text direction for the isolated document's <html> (default "ltr") — a srcdoc never inherits it from the embedding page.