Skip to content

pantoken-root / tools/demo/src / ExampleSrcdocOptions

Atanga: ExampleSrcdocOptions ​

Ngā kōwhiringa mō buildExampleSrcdoc.

Ngā Rawa ​

cssUrls ​

cssUrls: readonly string[]

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


scriptUrls? ​

optional scriptUrls?: readonly string[]

Ngā URL o ngā kōwae tuhi kaitirotiro hei uta i muri i te tohu tauira (ngā kohinga pāhekoheko, ina hiahiatia).


card? ​

optional card?: boolean

Whakauruhia html ki roto i te mata tohatoha .pantoken-demo-card (taunoa 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.