Skip to content

pantoken / renderers/pendo/src / addScope

Breytur: addScope

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

Beta

Búðu til @scope umbúðarviðbótina.

Type Declaration

Færibreytur

options?

AddScopeOptions

Skilar

Plugin

postcss

postcss: true

Krafist merkis fyrir PostCSS-viðbót.

Dæmi

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