Skip to content

pantoken-root / formats/components/src / elevationCss

ฟังก์ชัน: elevationCss() ​

elevationCss(options?): string

เบต้า

Build the elevation token block: <selector> { --instui-elevation-*: … }. Shipped inside components.css (so shadows are intrinsic — no plugin, no extra import), and reusable by other layered outputs (e.g. the Pendo renderer) via the selector option.

พารามิเตอร์ ​

options? ​

selector — ตัวเลือกสำหรับกฎ (ค่าเริ่มต้น :root).

selector? ​

string

คืนค่า ​

string

สตริง CSS.

ตัวอย่าง ​

ts
import { elevationCss } from "@pantoken/components";

elevationCss(); // ":root { --instui-elevation-resting: …; --instui-elevation-above: …; … }"