MCPcopy Index your code
hub / github.com/stackblitz/bolt.new / NodeButton

Function NodeButton

app/components/workbench/FileTree.tsx:222–236  ·  view source on GitHub ↗
({ depth, iconClasses, onClick, className, children }: ButtonProps)

Source from the content-addressed store, hash-verified

220}
221
222function NodeButton({ depth, iconClasses, onClick, className, children }: ButtonProps) {
223 return (
224 <button
225 className={classNames(
226 'flex items-center gap-1.5 w-full pr-2 border-2 border-transparent text-faded py-0.5',
227 className,
228 )}
229 style={{ paddingLeft: `${6 + depth * NODE_PADDING_LEFT}px` }}
230 onClick={() => onClick?.()}
231 >
232 <div className={classNames('scale-120 shrink-0', iconClasses)}></div>
233 <div className="truncate w-full text-left">{children}</div>
234 </button>
235 );
236}
237
238type Node = FileNode | FolderNode;
239

Callers

nothing calls this directly

Calls 1

classNamesFunction · 0.90

Tested by

no test coverage detected