Skip to main content

ComponentData

Struct ComponentData 

Source
pub struct ComponentData {
    pub template: String,
    pub css: String,
    pub css_href: String,
}
Expand description

Root protocol containing all fragment records. Per-component metadata keyed by tag name.

Fields§

§template: String

Client-side template string for hydration. Populated by the active parser plugin at build time. Used by servers to send templates to the client during navigation.

§css: String

Component CSS content for the Module strategy. Contains the full CSS content when CssStrategy::Module is active. Empty for Link and Style strategies (CSS is handled via tags or inline