StaticHtml() — astro Function Reference
Architecture documentation for the StaticHtml() function in static-html.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 986cde6e_e4d2_36cc_23b2_7ad26603d6dd["StaticHtml()"] 2a7964ea_d3cc_e8b0_70ad_dba51558e0b3["static-html.ts"] 986cde6e_e4d2_36cc_23b2_7ad26603d6dd -->|defined in| 2a7964ea_d3cc_e8b0_70ad_dba51558e0b3 style 986cde6e_e4d2_36cc_23b2_7ad26603d6dd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/integrations/preact/src/static-html.ts lines 16–20
const StaticHtml = ({ value, name, hydrate = true }: Props) => {
if (!value) return null;
const tagName = hydrate ? 'astro-slot' : 'astro-static-slot';
return h(tagName, { name, dangerouslySetInnerHTML: { __html: value } });
};
Domain
Subdomains
Source
Frequently Asked Questions
What does StaticHtml() do?
StaticHtml() is a function in the astro codebase, defined in packages/integrations/preact/src/static-html.ts.
Where is StaticHtml() defined?
StaticHtml() is defined in packages/integrations/preact/src/static-html.ts at line 16.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free