Skip to content

pantoken-root / tools/demo/src / ExampleSrcdocOptions

Antaramuka: ExampleSrcdocOptions ​

Pilihan untuk buildExampleSrcdoc.

Sifat ​

cssUrls ​

cssUrls: readonly string[]

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


scriptUrls? ​

optional scriptUrls?: readonly string[]

URL skrip penyemak imbas untuk dimuatkan selepas markup contoh (bundel interaksi, jika diperlukan).


card? ​

optional card?: boolean

Letakkan html dalam permukaan bersama .pantoken-demo-card (lalai 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.