MCPcopy Index your code
hub / github.com/bernaferrari/FigmaToCode / composeGroup

Function composeGroup

packages/backend/src/compose/composeMain.ts:192–200  ·  view source on GitHub ↗
(node: GroupNode)

Source from the content-addressed store, hash-verified

190};
191
192const composeGroup = (node: GroupNode): string => {
193 const widget = composeWidgetGenerator(node.children);
194 return composeContainer(
195 node,
196 generateComposeWidget("Box", {
197 content: widget ? [widget] : [],
198 }),
199 );
200};
201
202const composeContainer = (node: SceneNode, child: string): string => {
203 let propChild = "";

Callers 1

composeWidgetGeneratorFunction · 0.85

Calls 3

composeWidgetGeneratorFunction · 0.85
generateComposeWidgetFunction · 0.85
composeContainerFunction · 0.70

Tested by

no test coverage detected