Skip to content

pantoken / renderers/pendo/src / addScope

Function: addScope()

addScope(options?): Plugin

Beta

Create the @scope wrapping plugin.

Parameters

options?

AddScopeOptions = {}

Returns

Plugin

Example

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 (._pendo-step-container) { .x{color:red} }"