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.