Skip to content

pantoken / renderers/foundation/src / toFoundationCss

ฟังก์ชัน: toFoundationCss()

toFoundationCss(options?): string

ทดลอง

สร้าง overlay CSS แบบบางสำหรับ runtime: ใช้คลาสที่คอมไพล์ของธีม Foundation ด้วย var(--instui-*).

พารามิเตอร์

options?

ToFoundationCssOptions = {}

ToFoundationCssOptions.

คืนค่า

string

สตริง CSS ของ overlay.

ตัวอย่าง

จำกัดขอบเขตของ overlay ให้กับคอนเทนเนอร์

ts
toFoundationCss({ scope: ".instui" });