normalizeProps() — astro Function Reference
Architecture documentation for the normalizeProps() function in component.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD c890edbc_02d8_740c_975b_be0cbfc1b8ad["normalizeProps()"] 8fc97f1b_c914_c155_013d_cbd729fb6b4f["component.ts"] c890edbc_02d8_740c_975b_be0cbfc1b8ad -->|defined in| 8fc97f1b_c914_c155_013d_cbd729fb6b4f 94f21ea8_f0e7_2f4c_ee40_699f26c9ede0["renderComponent()"] 94f21ea8_f0e7_2f4c_ee40_699f26c9ede0 -->|calls| c890edbc_02d8_740c_975b_be0cbfc1b8ad style c890edbc_02d8_740c_975b_be0cbfc1b8ad fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/runtime/server/render/component.ts lines 505–515
function normalizeProps(props: Record<string, any>): Record<string, any> {
if (props['class:list'] !== undefined) {
const value = props['class:list'];
delete props['class:list'];
props['class'] = clsx(props['class'], value);
if (props['class'] === '') {
delete props['class'];
}
}
return props;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does normalizeProps() do?
normalizeProps() is a function in the astro codebase, defined in packages/astro/src/runtime/server/render/component.ts.
Where is normalizeProps() defined?
normalizeProps() is defined in packages/astro/src/runtime/server/render/component.ts at line 505.
What calls normalizeProps()?
normalizeProps() 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