Home / Function/ isCustomElement() — astro Function Reference

isCustomElement() — astro Function Reference

Architecture documentation for the isCustomElement() function in util.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  929650c8_51d4_a031_aec7_5c4070f1a602["isCustomElement()"]
  05241a8b_1820_8286_5770_4da18477ecde["util.ts"]
  929650c8_51d4_a031_aec7_5c4070f1a602 -->|defined in| 05241a8b_1820_8286_5770_4da18477ecde
  6a8bccff_747d_4ec9_706f_71a3b71d7341["handleBooleanAttribute()"]
  6a8bccff_747d_4ec9_706f_71a3b71d7341 -->|calls| 929650c8_51d4_a031_aec7_5c4070f1a602
  style 929650c8_51d4_a031_aec7_5c4070f1a602 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/runtime/server/render/util.ts lines 62–64

function isCustomElement(tagName: string) {
	return tagName.includes('-');
}

Domain

Subdomains

Frequently Asked Questions

What does isCustomElement() do?
isCustomElement() is a function in the astro codebase, defined in packages/astro/src/runtime/server/render/util.ts.
Where is isCustomElement() defined?
isCustomElement() is defined in packages/astro/src/runtime/server/render/util.ts at line 62.
What calls isCustomElement()?
isCustomElement() is called by 1 function(s): handleBooleanAttribute.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free