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: …; … }"