Skip to content

pantoken-root / tools/demo/src / ExampleSrcdocOptions

介面: ExampleSrcdocOptions ​

針對 buildExampleSrcdoc 的選項。

屬性 ​

cssUrls ​

cssUrls: readonly string[]

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


scriptUrls? ​

optional scriptUrls?: readonly string[]

在範例標記之後要載入的瀏覽器腳本 URL(互動套件,必要時)。


card? ​

optional card?: boolean

將 html 包裝在共用 .pantoken-demo-card 表面 (預設 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.