MCPcopy Create free account
hub / github.com/adobe/react-spectrum / toCSS

Method toCSS

packages/@react-spectrum/s2/style/style-macro.ts:1037–1041  ·  view source on GitHub ↗
(rulesByLayer: Map<string, string[]>, preludes: string[] = [], layer?: string)

Source from the content-addressed store, hash-verified

1035 }
1036
1037 toCSS(rulesByLayer: Map<string, string[]>, preludes: string[] = [], layer?: string): void {
1038 preludes.push(this.prelude);
1039 super.toCSS(rulesByLayer, preludes, layer);
1040 preludes?.pop();
1041 }
1042
1043 toJS(allowedOverridesSet: Set<string>, indent?: string): string {
1044 conditionStack.push(this.themeCondition || this.prelude);

Callers

nothing calls this directly

Calls 2

pushMethod · 0.80
toCSSMethod · 0.65

Tested by

no test coverage detected