MCPcopy
hub / github.com/stackblitz/bolt.new / appendClass

Function appendClass

app/utils/classNames.ts:51–61  ·  view source on GitHub ↗
(value: string, newClass: string | undefined)

Source from the content-addressed store, hash-verified

49}
50
51function appendClass(value: string, newClass: string | undefined) {
52 if (!newClass) {
53 return value;
54 }
55
56 if (value) {
57 return value + ' ' + newClass;
58 }
59
60 return value + newClass;
61}

Callers 2

classNamesFunction · 0.85
parseValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected