Skip to content

pantoken-root / renderers/pendo/src / addScope

Athróg: addScope ​

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

Béite

Cruthaigh an breiseán fillte @scope.

Type Declaration ​

Paraiméadair ​

options? ​

AddScopeOptions

Tuairisceáin ​

Plugin

postcss ​

postcss: true

Marcóir riachtanach do bhreiseán PostCSS.

Sampla ​

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