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

Function tailwindWrapSVG

packages/backend/src/tailwind/tailwindMain.ts:91–102  ·  view source on GitHub ↗
(
  node: AltNode<SceneNode>,
  settings: TailwindSettings,
)

Source from the content-addressed store, hash-verified

89 };
90
91const tailwindWrapSVG = (
92 node: AltNode<SceneNode>,
93 settings: TailwindSettings,
94): string => {
95 if (!node.svg) return "";
96
97 const builder = new TailwindDefaultBuilder(node, settings)
98 .addData("svg-wrapper")
99 .position();
100
101 return `\n<div${builder.build()}>\n${indentString(node.svg ?? "")}</div>`;
102};
103
104const tailwindGroup = async (
105 node: GroupNode,

Callers 1

convertNodeFunction · 0.85

Calls 4

indentStringFunction · 0.90
positionMethod · 0.45
addDataMethod · 0.45
buildMethod · 0.45

Tested by

no test coverage detected