Skip to content

pantoken / renderers/pendo/src / addScope

Varyab: addScope

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

Beta

Kreye plugin ki vlope @scope.

Type Declaration

Paramèt

options?

AddScopeOptions

Retounen

Plugin

postcss

postcss: true

Makè plugin PostCSS ki obligatwa.

Egzanp

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