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} }"