Skip to content

pantoken / tools/demo/src / ExampleSrcdocOptions

接口: ExampleSrcdocOptions

用于 buildExampleSrcdoc 的选项。

属性

cssUrls

cssUrls: readonly string[]

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


card?

optional card?: boolean

html 包装在共享的 .instui-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.