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

Function classNames

app/utils/classNames.ts:17–25  ·  view source on GitHub ↗
(...args: ClassNamesArg[])

Source from the content-addressed store, hash-verified

15 * should be included in the final class.
16 */
17export function classNames(...args: ClassNamesArg[]): string {
18 let classes = '';
19
20 for (const arg of args) {
21 classes = appendClass(classes, parseValue(arg));
22 }
23
24 return classes;
25}
26
27function parseValue(arg: ClassNamesArg) {
28 if (typeof arg === 'string' || typeof arg === 'number') {

Callers 15

EditorPanel.tsxFile · 0.90
FileBreadcrumb.tsxFile · 0.90
FileTree.tsxFile · 0.90
FolderFunction · 0.90
FileFunction · 0.90
NodeButtonFunction · 0.90
BaseChat.tsxFile · 0.90
CodeBlock.tsxFile · 0.90
ShellCodeBlockFunction · 0.90
Artifact.tsxFile · 0.90

Calls 2

appendClassFunction · 0.85
parseValueFunction · 0.85

Tested by

no test coverage detected