Skip to content

pantoken / renderers/pendo/src / addScope

ตัวแปร: addScope

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

เบต้า

สร้างปลั๊กอินที่ห่อหุ้ม @scope.

Type Declaration

พารามิเตอร์

options?

AddScopeOptions

คืนค่า

Plugin

postcss

postcss: true

ตัวบ่งชี้ปลั๊กอิน PostCSS ที่จำเป็น.

ตัวอย่าง

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