Skip to content

pantoken / renderers/pendo/src / addScope

वैरिएबल: addScope

const addScope: {(options?): Plugin; postcss: true; }

बीटा

@scope रैपिंग प्लगइन बनाएं।

Type Declaration

पैरामीटर

options?

AddScopeOptions

वापसी

Plugin

postcss

postcss: true

आवश्यक PostCSS प्लगइन मार्कर।

उदाहरण

ts
import postcss from "postcss";
import { addScope } from "@pantoken/pendo";

const { css } = postcss([addScope({ selector: "._pendo-step-container" })])
  .process(".x{color:red}", { from: undefined });
// "@scope ([class*=\"instui\"]._pendo-step-container) { .x{color:red} }"