Skip to main content

ComponentData

Type Alias ComponentData 

Source
pub type ComponentData = ComponentData;

Aliased Type§

pub struct ComponentData {
    pub template: String,
    pub css: String,
    pub css_href: String,
}

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