Skip to content

pantoken-root / tools/demo/src / ExampleSrcdocOptions

Interface: ExampleSrcdocOptions ​

Options pour buildExampleSrcdoc.

Propriétés ​

cssUrls ​

cssUrls: readonly string[]

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


scriptUrls? ​

optional scriptUrls?: readonly string[]

URLs des scripts du navigateur à charger après le balisage d'exemple (bundles d'interaction, au besoin).


card? ​

optional card?: boolean

Enveloppez html dans la surface partagée .pantoken-demo-card (par défaut 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.