isHTMLComponent() — astro Function Reference
Architecture documentation for the isHTMLComponent() function in component.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 3150d0a0_3d9e_69e2_911a_1bbd2d0b3bd9["isHTMLComponent()"] 8fc97f1b_c914_c155_013d_cbd729fb6b4f["component.ts"] 3150d0a0_3d9e_69e2_911a_1bbd2d0b3bd9 -->|defined in| 8fc97f1b_c914_c155_013d_cbd729fb6b4f 94f21ea8_f0e7_2f4c_ee40_699f26c9ede0["renderComponent()"] 94f21ea8_f0e7_2f4c_ee40_699f26c9ede0 -->|calls| 3150d0a0_3d9e_69e2_911a_1bbd2d0b3bd9 style 3150d0a0_3d9e_69e2_911a_1bbd2d0b3bd9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/runtime/server/render/component.ts lines 62–64
function isHTMLComponent(Component: unknown) {
return Component && (Component as any)['astro:html'] === true;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does isHTMLComponent() do?
isHTMLComponent() is a function in the astro codebase, defined in packages/astro/src/runtime/server/render/component.ts.
Where is isHTMLComponent() defined?
isHTMLComponent() is defined in packages/astro/src/runtime/server/render/component.ts at line 62.
What calls isHTMLComponent()?
isHTMLComponent() is called by 1 function(s): renderComponent.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free