isComponent() — astro Function Reference
Architecture documentation for the isComponent() function in rehype.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD c9e47d6e_f1fe_bc09_ecda_94db7203141d["isComponent()"] 89da4403_ab4a_62fa_64f0_d53bd0b3aee8["rehype.ts"] c9e47d6e_f1fe_bc09_ecda_94db7203141d -->|defined in| 89da4403_ab4a_62fa_64f0_d53bd0b3aee8 d17ed63a_5ec6_bc29_96d7_b3145cec7d5d["rehypeAnalyzeAstroMetadata()"] d17ed63a_5ec6_bc29_96d7_b3145cec7d5d -->|calls| c9e47d6e_f1fe_bc09_ecda_94db7203141d style c9e47d6e_f1fe_bc09_ecda_94db7203141d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/jsx/rehype.ts lines 176–182
function isComponent(tagName: string) {
return (
(tagName[0] && tagName[0].toLowerCase() !== tagName[0]) ||
tagName.includes('.') ||
/[^a-zA-Z]/.test(tagName[0])
);
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does isComponent() do?
isComponent() is a function in the astro codebase, defined in packages/astro/src/jsx/rehype.ts.
Where is isComponent() defined?
isComponent() is defined in packages/astro/src/jsx/rehype.ts at line 176.
What calls isComponent()?
isComponent() is called by 1 function(s): rehypeAnalyzeAstroMetadata.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free