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.