MCPcopy Create free account
hub / github.com/TanStack/devtools / badge

Function badge

examples/preact/basic/src/package-json-panel.tsx:90–102  ·  view source on GitHub ↗
(text: string, color: string)

Source from the content-addressed store, hash-verified

88 textAlign: 'left',
89 }
90 const badge = (text: string, color: string) => (
91 <span
92 style={{
93 background: color,
94 color: '#fff',
95 borderRadius: 4,
96 padding: '1px 4px',
97 fontSize: 11,
98 }}
99 >
100 {text}
101 </span>
102 )
103 const btn = (
104 label: string,
105 onClick: () => void,

Callers 2

VersionCellFunction · 0.70
renderDepsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected