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

Function cssModuleToSlots

packages/@adobe/react-spectrum/src/utils/Slots.tsx:31–38  ·  view source on GitHub ↗
(cssModule: {[cssmodule: string]: string})

Source from the content-addressed store, hash-verified

29}
30
31export function cssModuleToSlots(cssModule: {[cssmodule: string]: string}): {
32 [slot: string]: {UNSAFE_className: string};
33} {
34 return Object.keys(cssModule).reduce((acc, slot) => {
35 acc[slot] = {UNSAFE_className: cssModule[slot]};
36 return acc;
37 }, {});
38}
39
40export function SlotProvider(props: {
41 slots?: {[slot: string]: object};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected