Skip to content

pantoken-root / tools/demo/src / ExampleSrcdocOptions

Grensesnitt: ExampleSrcdocOptions ​

Alternativ for buildExampleSrcdoc.

Eigenskapar ​

cssUrls ​

cssUrls: readonly string[]

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


scriptUrls? ​

optional scriptUrls?: readonly string[]

Nettlesarskript-URLar som skal lastast etter eksempelmarkeringa (interaksjonspakkar, ved behov).


card? ​

optional card?: boolean

Pakk html inn i den delte .pantoken-demo-card flate (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.