MCPcopy Create free account
hub / github.com/ecomfe/tempad-dev / isCustomComponentTag

Function isCustomComponentTag

packages/extension/utils/component.ts:283–288  ·  view source on GitHub ↗
(tag: string)

Source from the content-addressed store, hash-verified

281}
282
283function isCustomComponentTag(tag: string): boolean {
284 // React/Vue components are usually PascalCase; custom elements contain a hyphen.
285 if (!tag) return false
286 const first = tag[0]
287 return first === first.toUpperCase() || tag.includes('-')
288}
289
290const VOID_HTML_TAGS = new Set([
291 'area',

Callers 1

stringifyBaseComponentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected