Skip to content

pantoken / packages/utils/src / extractInstuiRefs

Funktion: extractInstuiRefs()

extractInstuiRefs(text): Set<string>

Beta

Hvert --instui-* custom-property-navn, der vises hvor som helst i text.

Parametre

text

string

Returnerer

Set<string>

Eksempel

ts
import { extractInstuiRefs } from "@pantoken/utils";

extractInstuiRefs(".b { color: var(--instui-color-text-base); }");
// → Set { "--instui-color-text-base" }