Skip to content

pantoken-root / formats/components/src / elevationDeclarations

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

elevationDeclarations(): [name: string, value: string][]

เบต้า

คู่ชื่อ/ค่า --instui-elevation-* (แต่ละคู่เป็น box-shadow หลายชั้น) ค่าอ้างอิงโทเค็นสีเงาหยดแบบธีม จึงปรับตามธีมได้เมื่อใดก็ตามที่โหลดแผ่นโทเค็น

คืนค่า ​

[name: string, value: string][]

หนึ่งคู่ [customProperty, value] ต่อแต่ละระดับและนามแฝง

ตัวอย่าง ​

ts
import { elevationDeclarations } from "@pantoken/utils";

elevationDeclarations(); // [["--instui-elevation-resting", "…"], ["--instui-elevation-above", "…"], …]