component

Attribute Macro component 

Source
#[component]
Expand description

Attribute macro for defining a UI component

§Example

use windjammer_ui::prelude::*;

#[component]
struct Counter {
    count: i32,
}

impl Counter {
    fn render(&self) -> VNode {
        // ... render implementation
    }
}