TypeBadge function presentation exported
Last updated: 2026-03-04T23:21:38.418Z
Metrics
LOC: 4
Complexity: 2
Params: 2
Signature
TypeBadge({ type, prefix = "" }: TypeBadgeProps)
Architecture violations
- [warning] function-camel-case: 'TypeBadge' does not match naming convention /^[a-z][a-zA-Z0-9]*$/
Source Code
export function TypeBadge({ type, prefix = "" }: TypeBadgeProps) {
const color = TYPE_COLORS[type] ?? "#64748b";
return (
<span class={`${prefix}type-badge`} style={{ background: color }}>
No outgoing dependencies.
Impact (Incoming)
| Source | Type |
|---|---|
| FieldsTabCallbacks | uses |