Skip to content

pantoken / renderers/pendo/src / addScope

Variable: addScope

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

Behta

Gávdnat @scope-girddán plugin.

Type Declaration

Parametera

options?

AddScopeOptions

Gullii / Gávdnat

Plugin

postcss

postcss: true

Dárbbuheapmi PostCSS-plugga-márgga.

Exempel

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