Skip to content

pantoken-root / tools/demo/src / ExampleSrcdocOptions

Interfaccia: ExampleSrcdocOptions ​

Opzioni per buildExampleSrcdoc.

Proprietà ​

cssUrls ​

cssUrls: readonly string[]

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


scriptUrls? ​

optional scriptUrls?: readonly string[]

URL degli script del browser da caricare dopo il markup dell'esempio (bundle di interazione, se necessario).


card? ​

optional card?: boolean

Inserisci html nella superficie condivisa .pantoken-demo-card (predefinito 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.